How do I display one on a given tab?
I tried to use tabIndex="#{meuBean.tabIndex}"
setting to 0,1,2 and etc, but when opening it it always positions itself on the first tab.
How do I display one on a given tab?
I tried to use tabIndex="#{meuBean.tabIndex}"
setting to 0,1,2 and etc, but when opening it it always positions itself on the first tab.
Use:
PF('suaTabView').select(1);
Ex:
<p:commandButton onclick="PF('tabViewEdit').select(0);" />
Or you can enable the tab through an attribute in the Managed Bean
<p:tabView activeIndex="${meuMB.tabAtiva}" >