My solution works that way:
<rich:tabPanel>
<rich:tabs label="#{item.label}" value="#{bean.items}" var="item">
...
</rich:tabs>
</rich:tabPanel>
I create new comonent UITabs (extends UITab), and modify (just a little) only 3 classes:
- TabPanelRendererBase (change activeTab to activeTabName, because it is better to recognize tab by name for the UITabs component)
- TabRendererBase (encode UITabs in specific way)
- UITabPanel (trick with TabsIterator)
and of course tabPanel.xml (add tabs component)
I prepare patches, tabPanelUITabs.jar and tabPanelDemoUITabs.war and sources. The solution work even if we have table inside UITabs with inputs (see attached war) .
More:
http://jira.jboss.com/jira/browse/RF-89