[
https://issues.apache.org/jira/browse/MYFACES-3173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-3173.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.2
2.0.8
The solution is just add push/pop code when PostAddToViewEvent is published.
Additionally, I did some changes on the algorithm used to locate #{cc}
references, because it was too coupled with api details (it should not assume
the attribute holding the stack).
> #{cc} inside f:event is not resolved correctly
> ----------------------------------------------
>
> Key: MYFACES-3173
> URL: https://issues.apache.org/jira/browse/MYFACES-3173
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.7, 2.1.1
> Reporter: Gerald Müllan
> Assignee: Leonardo Uribe
> Fix For: 2.0.8, 2.1.2
>
>
> The following case:
> <composite:interface
> componentType="org.apache.myfaces.view.facelets.tag.composite.CompositeTestComponent">
> </composite:interface>
> <composite:implementation>
> <f:event type="javax.faces.event.PostAddToViewEvent"
> listener="#{cc.postAddToViewCallback}"/>
> </composite:implementation>
> throws an exception, because component stack is not set correctly when
> PostAddToView is delivered.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira