繁体   English   中英

JSF2:如何在组件内的特定位置呈现复合组件的子组件?

[英]JSF2: How do I render composite component's children at a specific location within component?

我在引用和显示复合组件的子组件时遇到问题:

<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}列出组件的子组件,但我不知道如何在复合组件的特定位置呈现它们。 有什么想法或解决方法吗?

<composite:insertChildren>可以解决问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM