문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top