开发者

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

开发者 https://www.devze.com 2023-03-09 23:01 出处:网络
I have problem referencing and displaying composite component\'s childs like that: <xyz:mycomponent>

I have problem referencing and displaying composite component's childs like that:

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

Where mycomponent is defined like that:

<composite:implementation>
  <!-- some tags here -->
  <h:paneGroup>
    <!-- I want component's childs (t开发者_开发技巧wo outputText's) to be rendered here -->
  </h:paneGroup>
</composite:implementation>

I can list component's childs via #{cc.children} but I have no idea how to render them at a specific place of composite component. Any ideas or workarounds?


<composite:insertChildren> will do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号