I have problem referencing and displaying composite component's childs like that:
<xyz:mycomponent>
<h:outputText value="some text"/>
<h:outputText value="another text"/>
</xyz:mycomponent>
Where mycomponent
is defined like that:
<composite:implementation>
<!-- some tags here -->
<h:paneGroup>
<!-- I want component's childs (two outputText's) to be rendered here -->
</h:paneGroup>
</composite:implementation>
I can list component's childs via #{cc.children}
but I have no idea how to render them at a specific place of composite component. Any ideas or workarounds?
<composite:insertChildren>
will do the trick.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.