[JAVASERVERFACES-2957] Tree creation is broken when using <cc:insertChildren> directly in <cc:implementation> Created: 22/Jul/13 Updated: 25/Jul/13 Resolved: 25/Jul/13
|Component/s:||composite components, facelets|
|Affects Version/s:||2.0.3, 2.0.4, 2.1.0, 2.1.1|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
While analyzing the state issue
The relevant composite components will look like this:
What will happen on postback:
2.) In renderView phase the facelets tree is applied a second time. But this time com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.ComponentTagHandlerDelegateImpl will not find the already existing childs of the composite component because they were relocated. The relevant method com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.findReparentedComponent() will never be called in this case.
If insertChildren is nested inside a component the relocating code will work as expected. The working components will look like this:
|Comment by Eugene Burtsev [ 22/Jul/13 ]|
This issue is clone of https://java.net/jira/browse/JAVASERVERFACES-2053.
I've reproduced this issue in latest 2.1.24 and 2.2.1 versions.
Code like following doesn't work too:
|Comment by Manfred Riem [ 25/Jul/13 ]|
I cannot reproduce this issue.