jsf - How to dynamically add <p:tab> to <p:wizard> in a loop -
i dynamically add <p:tab>
components <p:wizard>
component in loop.
i tried using <ui:repeat>
inside , outside <p:wizard>
component.
<p:wizard> <ui:repeat value="#{tabbean.tabs}" var="tab"> <p:tab title="#{tab.tabname}"> </ui:repeat> </p:wizard>
<ui:repeat value="#{tabbean.tabs}" var="tab"> <p:wizard> <p:tab title="#{tab.tabname}"> </p:wizard> </ui:repeat>
none of both attempts work. how can achieve requirement?
the <p:wizard>
understands <p:tab>
children. doesn't understand <ui:repeat>
child. need create physical <p:tab>
children in jsf component tree immediate child of <p:wizard>
component.
the <c:foreach>
taghandler capable of doing that.
<p:wizard> <c:foreach items="#{tabbean.tabs}" var="tab"> <p:tab title="#{tab.tabname}"> </c:foreach> </p:wizard>
Comments
Post a Comment