【发布时间】:2011-09-06 07:36:58
【问题描述】:
我在引用和显示复合组件的子组件时遇到问题:
<xyz:mycomponent>
<h:outputText value="some text"/>
<h:outputText value="another text"/>
</xyz:mycomponent>
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} 列出组件的子组件,但我不知道如何在复合组件的特定位置呈现它们。有什么想法或解决方法吗?
【问题讨论】:
标签: java jsf jsf-2 composite-component