-
1. tab panel selectedTab attribute doesn't work
iabughosh Apr 8, 2011 7:33 AM (in response to ainanmis)Hi Abdulkerim,
selectedTab is removed in RichFaces 4, but you can use this switchToItem function of rich:tabPanel on the body onload function :
<h:body onload="#{rich:component('mainPanel')}.switchToItem('tab2');">
.
.
<rich:tabPanel id="mainPanel" switchType="ajax">
<rich:tab name="tab1" >
<h:outputText value="Tab Content 1" />
</rich:tab>
<rich:tab name="tab2" >
<h:outputText value="Tab Content 2" />
</rich:tab>
<rich:tab name="tab3">
<h:outputText value="Tab Content 3" />
</rich:tab>
</rich:tabPanel>
regards.
-
2. tab panel selectedTab attribute doesn't work
ainanmis Apr 8, 2011 9:23 AM (in response to iabughosh)Hi,
Actually I am trying to change tab dynamically from bean . All tabs is firstly disabled. Each tab will be filled. After filling , user will click a button for next tab. This button will make next tab enabled and change tab to next tab. I used activeItem attribute instead of selectedTab.
thanks for your help.
-
3. tab panel selectedTab attribute doesn't work
ilya_shaikovsky Apr 11, 2011 3:53 AM (in response to ainanmis)use activeItem attribute. It's used at all the panel now. (toggle, tab, accordion, panleMenu)