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

Leonardo Uribe commented on MYFACES-2516:
-----------------------------------------

The final code looks like this:

            UIComponent metadataFacet = 
parent.getFacet(UIViewRoot.METADATA_FACET_NAME);
            if (metadataFacet == null)
            {
                metadataFacet = ctx.getFacesContext().
                    getApplication().createComponent(UIPanel.COMPONENT_TYPE);
                metadataFacet.setId(UIViewRoot.METADATA_FACET_NAME);
                parent.getFacets().put(UIViewRoot.METADATA_FACET_NAME, 
metadataFacet);
            }
            parent.getAttributes().put(FacetHandler.KEY, 
UIViewRoot.METADATA_FACET_NAME);
            try
            {
                this.nextHandler.apply(ctx, parent);
            }
            finally
            {
                parent.getAttributes().remove(FacetHandler.KEY);
            }

Does that work?

> Allow any child for f:event in the case of a PreRenderViewEvent
> ---------------------------------------------------------------
>
>                 Key: MYFACES-2516
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2516
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Bernd Bohmann
>            Assignee: Leonardo Uribe
>         Attachments: MYFACES-2516.patch
>
>
> f:event currently only supports the UIViewRoot as a child for the 
> PreRenderViewEvent

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to