JSF 2.0 custom composite controls & nesting
-
23-09-2019 - |
Question
Greetings, I'm trying to implement my custom TAB control. I'd like it to be based on new composite components feature of JSF 2.0:
<i:tabControl width="480" height="320" value="#{backingBean.someIterable}" var="tab" >
<i:tabItem href="#{tab.href}" caption="#{tab.caption}"/>
<i:tabControl/>
The problem is I don't know how to implement repeater for Composite component. How to get access to nested element?
Solution
I don't think you can really iterate over the child components. Check
<composite:insertChildren/>
, <composite:renderFacet .../>
and <composite:insertFacet .../>
tags for child/facet processing.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow