JSF2: How to make compound children of a component in a specific place inside a component?

I have a problem with displaying and displaying child components of a composite component:

<xyz:mycomponent>
  <h:outputText value="some text"/>
  <h:outputText value="another text"/>
</xyz:mycomponent>

Where is mycomponentdefined as follows:

<composite:implementation>
  <!-- some tags here -->
  <h:paneGroup>
    <!-- I want component childs (two outputText's) to be rendered here -->
  </h:paneGroup>
</composite:implementation>

I can list the children of a component through #{cc.children}, but I don’t know how to make them in a specific place of a composite component. Any ideas or workarounds?

+3
source share
1 answer

<composite:insertChildren> will do the trick.

+6
source

All Articles