This content has been marked as final.
Show 2 replies
-
1. Re: JSF TAB PROBLEM
budoray Jul 26, 2007 4:01 PM (in response to aboulouay83)Declare private int tabIndex in your bean class. Provide a setter and getter for it. The example below should help you get started
...YOUR_BEAN class private int tabIndex; public int getTabIndex() { return tabIndex; } public void setTabIndex(int tabIndex) { this.tabIndex = tabIndex; } public String changeTabs(){ return ""; } ... <rich:tabPanel selectedTab="#{YOUR_BEAN.tabIndex}" > <rich:tab> <t:commandButton value="One" action="#{YOUR_BEAN.changeTabs}" /> </rich:tab> <rich:tab> <t:commandButton value="Two" action="#{YOUR_BEAN.changeTabs}" /> </rich:tab> <rich:tab> <t:commandButton value="Three" action="#{YOUR_BEAN.changeTabs}" /> </rich:tab> </rich:tabPanel>
-
2. Re: JSF TAB PROBLEM
aboulouay83 Jul 27, 2007 4:37 AM (in response to aboulouay83)thanks a lot for your help i will test it