Details
Description
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)
String uid = uniqueIdVendor.createUniqueId(facesContext, null);