myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (Resolved) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (MYFACES-3515) Duplicate id using a facet and multiple <c:if> blocks in a composite component
Date Thu, 29 Mar 2012 04:44:09 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved MYFACES-3515.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.7
                   2.0.13
         Assignee: Leonardo Uribe
    
> Duplicate id using a facet and multiple <c:if> blocks in a composite component
> ------------------------------------------------------------------------------
>
>                 Key: MYFACES-3515
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3515
>             Project: MyFaces Core
>          Issue Type: Bug
>         Environment: MyFaces 2.1.6, Tomahawk20 1.1.11
>            Reporter: dennis hoersch
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.13, 2.1.7
>
>         Attachments: duplicateIdTest.zip
>
>
> Hello,
> I get an IllegalStateException using a facet in a composite component. The facet gets
the same id as the internal 'composite component'-facet. The facet is created using CumponentSupport.addFacet().
Here the id of the facet is generated using the view root instead of the UniqueIdVendor of
the parent to whom the facet is added.
> In other places the id is retrieved with something like
>         FaceletCompositionContext mctx = FaceletCompositionContext.getCurrentInstance(facesContext);
>         UniqueIdVendor uniqueIdVendor = mctx.getUniqueIdVendorFromStack();
>         if (uniqueIdVendor == null)
>         {
>             uniqueIdVendor = facesContext.getViewRoot();
>         }
> 	String uid = uniqueIdVendor.createUniqueId(facesContext, null);

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

        

Mime
View raw message