Hi all,
I'm trying to create a tabPanel where the tabs are inserted / removed dynamically;
I tried to achieve this through xhtml in these ways:
solution one: <rich:tabPanel> <ui:repeat value="#{mycomponent.tabdatalist}" var="tabdata"> <rich:tab label="#{tabdata.label}"> <ui:insert name="tabcontent"/> </rich:tab> </ui:repeat> </rich:tabPanel> solution two: <rich:tabPanel> <a4j:repeat value="#{mycomponent.tabdatalist}" var="tabdata"> <rich:tab label="#{tabdata.label}"> <ui:insert name="tabcontent"/> </rich:tab> </a4j:repeat> </rich:tabPanel>
<rich:tabPanel value="#{mycomponent.tabdatalist}" var="tabdata"> <rich:tab label="#{tabdata.label}"> <ui:insert name="tabcontent"/> </rich:tab> </rich:tabPanel>
Found almost the same problem in Jira.. I added a comment to suggest the dataTable like solution.
If you have a similar problem you may plan to vote it (not the suggestion :) for that we need the RichFaces guys to put their head on):
http://jira.jboss.com/jira/browse/RF-89
In the related post:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035943
there's a workaround solution using c:forEach.
Regards,
Raffaele Camanzo