Java JSF2:如何呈现复合组件';是否在组件中的特定位置设置子对象?

Java JSF2:如何呈现复合组件';是否在组件中的特定位置设置子对象?,java,jsf,jsf-2,composite-component,Java,Jsf,Jsf 2,Composite Component,我在引用和显示复合组件的子对象时遇到问题,如下所示: <xyz:mycomponent> <h:outputText value="some text"/> <h:outputText value="another text"/> </xyz:mycomponent> <composite:implementation> <!-- some tags here --> <h:paneGroup>

我在引用和显示复合组件的子对象时遇到问题,如下所示:

<xyz:mycomponent>
  <h:outputText value="some text"/>
  <h:outputText value="another text"/>
</xyz:mycomponent>
<composite:implementation>
  <!-- some tags here -->
  <h:paneGroup>
    <!-- I want component's childs (two outputText's) to be rendered here -->
  </h:paneGroup>
</composite:implementation>
我可以通过
{cc.children}
列出组件的子组件,但我不知道如何在复合组件的特定位置渲染它们。有什么想法或解决办法吗?

就可以了。

可能重复的