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

Bernd Bohmann commented on MYFACES-2516:
----------------------------------------

My 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);
                
metadataFacet.getAttributes().put(ComponentSupport.FACET_CREATED_UIPANEL_MARKER,
 true);
                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);
            }

> 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