是否可以将复合组件CC的子元素作为CC的panelGrid父元素的单元格内容传递?

时间:2016-01-13 13:49:40

标签: jsf

例如,我有一个像这样的复合组件:

...
<cc:implementation>
       <h:outputText value="#{binding.label}" />
       <h:outputText value="#{binding.value}" />
       <cc:insertChildren/>
       <h:outputText value="#{cc.some.stuff}" />
</cc:implementation>

我希望在四列panelGrid中使用此组件,如下所示,这样我的复合组件中的每个子组件 中的每个子组件或实际组件都被放置在它自己的单独的单元格中。 panelGrid(所以我的CC的每个实例都是一行):

<h:panelGrid columns="4">
    <custom:myComponent blah="bla">
        <foo:whatEverIwantHere />
    </custom:myComponent>
</h:panelGrid>

但问题是整个 custom:myComponent被呈现为panelGrid的单个单元格,在单个td内。

有什么想法吗?感谢

0 个答案:

没有答案