Leonardo Uribe created MYFACES-3801:
---------------------------------------

             Summary: Passthrough attributes does not require URI encoding like 
in writeURIAttribute
                 Key: MYFACES-3801
                 URL: https://issues.apache.org/jira/browse/MYFACES-3801
             Project: MyFaces Core
          Issue Type: Task
          Components: JSR-344
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


In the renderkit javadoc of jsf 2.2 spec says this  (Rendering Pass Through 
Attributes):

"... The ResponseWriter must ensure that any pass through attributes are 
rendered on the outer-most markup element for the component. If there is a pass 
through attribute with the same name as a renderer specific attribute, the pass 
through attribute takes precedence. Pass through attributes are rendered as if 
they were passed to  ResponseWriter.writeURIAttribute(). ..." Note here it says 
"attributes are rendered as if they were passed", instead say "... attributes 
are encoded and rendered as if ...". Black box testing against RI shows that 
there is no URI encoding at all in this part, so in this case the best is do 
the same here. After all, it is resposibility of the one who set the 
passthrough attribute to do the proper encoding in cases when a URI is 
provided. There are some simple use cases like the one provided here:

http://markmail.org/message/bpqolsarmnsakhl6

That shows that do any URI encoding here is not wanted.

However, that does not means the attribute should not be encoded as other 
attributes.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to