You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/05/02 08:28:55 UTC

[jira] Created: (MYFACES-2692) Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form

Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form
---------------------------------------------------------------------------

                 Key: MYFACES-2692
                 URL: https://issues.apache.org/jira/browse/MYFACES-2692
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.0.0
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


Checking some stuff related to how to target scripts to <form>, the documentation of javax.faces.Form renderer says this:

"....Obtain the UIViewRoot view identifier and use it to obtain an action URL by calling ViewHandler.getActionURL. Use the action URL to obtain an encoded action URL by calling ExternalContext.encodeActionURL. Obtain an encoded partial action URL by calling ExternalContext.encodePartialActionURL using action URL as the argument. Compare the result from ExternalContext.encodePartialActionURL  with the value from ExternalContext.encodeActionURL(). If they are different, render a hidden field with the name javax.faces.encodedURL  and the value of this hidden field as the value from ExternalContext.encodePartialActionURL...."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2692) Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863408#action_12863408 ] 

Jakob Korherr commented on MYFACES-2692:
----------------------------------------

The related myfaces-test issue is MYFACESTEST-9.

> Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form
> ---------------------------------------------------------------------------
>
>                 Key: MYFACES-2692
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2692
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.1-SNAPSHOT
>
>
> Checking some stuff related to how to target scripts to <form>, the documentation of javax.faces.Form renderer says this:
> "....Obtain the UIViewRoot view identifier and use it to obtain an action URL by calling ViewHandler.getActionURL. Use the action URL to obtain an encoded action URL by calling ExternalContext.encodeActionURL. Obtain an encoded partial action URL by calling ExternalContext.encodePartialActionURL using action URL as the argument. Compare the result from ExternalContext.encodePartialActionURL  with the value from ExternalContext.encodeActionURL(). If they are different, render a hidden field with the name javax.faces.encodedURL  and the value of this hidden field as the value from ExternalContext.encodePartialActionURL...."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2692) Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863396#action_12863396 ] 

Jakob Korherr commented on MYFACES-2692:
----------------------------------------

The commit for this issue causes all tests on HtmlFormRendererTest to fail, because encodePartialActionURL() is not implemented on MockExternalContext20.

I will open an issue on myfaces-test for this and fix it asap. However we have to wait for the next (working) build of myfaces-test until this will work. Until then I will comment-out the three related tests.

> Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form
> ---------------------------------------------------------------------------
>
>                 Key: MYFACES-2692
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2692
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.1-SNAPSHOT
>
>
> Checking some stuff related to how to target scripts to <form>, the documentation of javax.faces.Form renderer says this:
> "....Obtain the UIViewRoot view identifier and use it to obtain an action URL by calling ViewHandler.getActionURL. Use the action URL to obtain an encoded action URL by calling ExternalContext.encodeActionURL. Obtain an encoded partial action URL by calling ExternalContext.encodePartialActionURL using action URL as the argument. Compare the result from ExternalContext.encodePartialActionURL  with the value from ExternalContext.encodeActionURL(). If they are different, render a hidden field with the name javax.faces.encodedURL  and the value of this hidden field as the value from ExternalContext.encodePartialActionURL...."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-2692) Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-2692.
-------------------------------------

    Fix Version/s: 2.0.1-SNAPSHOT
       Resolution: Fixed

> Hidden field "javax.faces.encodedURL" should be rendered at begin of h:form
> ---------------------------------------------------------------------------
>
>                 Key: MYFACES-2692
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2692
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.1-SNAPSHOT
>
>
> Checking some stuff related to how to target scripts to <form>, the documentation of javax.faces.Form renderer says this:
> "....Obtain the UIViewRoot view identifier and use it to obtain an action URL by calling ViewHandler.getActionURL. Use the action URL to obtain an encoded action URL by calling ExternalContext.encodeActionURL. Obtain an encoded partial action URL by calling ExternalContext.encodePartialActionURL using action URL as the argument. Compare the result from ExternalContext.encodePartialActionURL  with the value from ExternalContext.encodeActionURL(). If they are different, render a hidden field with the name javax.faces.encodedURL  and the value of this hidden field as the value from ExternalContext.encodePartialActionURL...."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.