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> 

see also:


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -