h:link render conversationContext param multiple times
------------------------------------------------------

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


Doing some tests between myfaces core and orchestra I found that when h:link is 
rendered, the conversationContext param is rendered multiple times. It has two 
reasons:

1. It is called ExternalContext.encodeResourceURL from the rendered, but before 
it was called ViewHandler.getBookmarkableURL (on 
HtmlRendererUtils.getOutcomeTargetLinkHref). We need to remove the call to 
encodeResourceURL, because it is not necessary.
2. ExternalContext.encodeBookmarkableURL call _httpServletResponse.encodeURL 
and it should not. The reason is ViewHandler.getBookmarkableURL do this task 
calling ExternalContext.encodeActionURL.

I think this one has enough importance to be included in 2.0.0 release, so I'll 
regenerate all artifacts to include this one. Note this effect is only detected 
when myfaces core and orchestra are used together, because orchestra override 
HttpServletResponse.encodeURL to add his conversationContext param.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to