[ 
https://issues.apache.org/jira/browse/MYFACES-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930460#comment-13930460
 ] 

Michael Kurz commented on MYFACES-3868:
---------------------------------------

I checked the API doc of TagDecorator:

https://javaserverfaces.java.net/nonav/docs/2.2/javadocs/javax/faces/view/facelets/TagDecorator.html

There it is mentioned, that all tag attributes with an empty namespace or a 
namespace different from the one of the element should be added as attribute to 
the component. So the MyFaces behavior seems to be correct according to the 
spec.

BUT: The text in the API documentation seems to be different from what Mojarra 
implements as all attributes without a namespace seem to become passthrough 
attributes in Mojarra (which perfectly makes sense for me and feels like the 
natural behavior in this case).

So we probably have to verify if the spec text is correct here.

> Passthrough element ignores passthrough attributes
> --------------------------------------------------
>
>                 Key: MYFACES-3868
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3868
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-344
>    Affects Versions: 2.2.1
>            Reporter: Michael Kurz
>         Attachments: MYFACES-3868-webapp-example.zip
>
>
> In the following example, the passthrough element input has an attribute 
> placeholder, that should be added to the corresponding JSF component as a 
> passthrough attribute:
> <input type="text" jsf:id="name" jsf:value="#{bean.name}"
>     placeholder="Enter name"/>
> With MyFaces 2.2.1 however, the placeholder attribute is not rendered.
> On further inspecting the component, I saw that placeholder is put in the 
> attributes map and not in the passthrough attributes map of the component. 
> That is probably the reason why it is not rendered.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to