myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Bohmann (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2516) Allow any child for f:event in the case of a PreRenderViewEvent
Date Fri, 29 Jan 2010 07:13:35 GMT

    [ 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.


Mime
View raw message