[
https://issues.apache.org/jira/browse/MYFACES-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806241#action_12806241
]
Leonardo Uribe commented on MYFACES-2516:
-----------------------------------------
Ouch, that's true. To solve this one we have to change the current
ViewMetadataHandler implementation.
The implementation of FacetHandler looks like this:
public void apply(FaceletContext ctx, UIComponent parent) throws
IOException, FacesException, FaceletException,
ELException
{
if (parent == null)
{
throw new TagException(this.tag, "Parent UIComponent was null");
}
parent.getAttributes().put(KEY, this.name.getValue(ctx));
try
{
this.nextHandler.apply(ctx, parent);
}
finally
{
parent.getAttributes().remove(KEY);
}
}
There is no creation of panel here (it is done indirectly from
ComponentTagHandlerDelegate). Maybe we can set and remove FacetHandler.KEY like
in FacetHandler, also create a panel like it is present, then change the call
of call
this.nextHandler.apply(ctx, parent);
instead
this.nextHandler.apply(ctx, metadataFacet);
And in theory that should 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.