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 2014/03/12 17:05:44 UTC
[jira] [Resolved] (MYFACES-3868) Passthrough element ignores
passthrough attributes
[ https://issues.apache.org/jira/browse/MYFACES-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved MYFACES-3868.
-------------------------------------
Resolution: Fixed
Assignee: Leonardo Uribe
Instead copy the attributes in both maps, the fix done was check the case where empty namespace is provided and add the tag attribute that adds it as a passthrough attribute. So, if the attribute is added using p:xxx it will be only added to the passhtrough attribute map and if is added using jsf: it will be added to the component attribute map, like it should be.
> 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
> Assignee: Leonardo Uribe
> 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)