myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AM <>
Subject Get how to change selected tab
Date Wed, 28 Mar 2012 11:31:31 GMT
I have 3 Tabs in a tabGroup.

When i am on the third tab and i click there on a button i want to go
back to the first tab automatically.


<tc:tabGroup id="tabs" rendered="#{controller.anotherId != 0}"
selectedIndex="#{controller.tabId}" >

                <tc:tab label="ABC">

                    <tc:tab label="DEF">

                    <tc:tab label="GHI">

in my java-code i have getter&setter for tabId.
whith this solution, i have to click twice on the button to return to
the first tab.

View raw message