Reputation: 39
I have a <rich:tabPanel>
and inside it I have three <rich:tab>
,but tabs are not changing automatically whenever I'm clicking the next button for switching from one tab to another.Validation checking is performed correctly and I have put condition on rendered property of <rich:tab>
,that is also working correctly whenever I'm clicking the next Button 2nd tab is comming,but I need to click it through mouse for viewing its components,this should happen automatically as per the property of <rich:tab>
.
can anyone has any solution to this?
<rich:panel header="My Claim > New Claim" headerClass="header-left" style="border:0;text-align:left;width:910px">
<rich:tabPanel selectedTab="#{billController.currentTab}" id="tabPanel">
<!-- first default panel -->
<rich:tab header="Step 1" name="fisrt" id="tab1">
<h:commandButton value="Next" action="#{billcontroller.saveData}"/>
</rich:tab>
</rich:panel>
<rich:tab header="Step 2" rendered="#{billController.uploadEnabled}" name="second">
</rich:tab>
Upvotes: 0
Views: 1100
Reputation: 11
I had the same issues. And in my case a surrounding <h:body>
solved the problem.
Upvotes: 1
Reputation: 10004
You need to add 'switchType=ajax|client|Server', you have missed to include switch type
Upvotes: 0