You need to sign in to do that
Don't have an account?

Problem in apex:tab
In apex:tab i have next button to move to next tab but it workds only when disabled="true" how can i use this for disabled="false"
here is my code:
<apex:tabPanel id="tabPanel" selectedTab="{!selectedTab}" tabClass="tabClass" immediate="true"> <apex:tab label="First tab" id="tab1" style="font-size:13px;"> <apex:commandButton value="Next Step" action="{!enabletab2}" rerender="tabPanel" styleclass="button" immediate="true"/> </apex:tab> <apex:tab label="First tab" id="tab2 style="font-size:13px;"> <apex:commandButton value="Next Step" action="{!enabletab2}" rerender="tabPanel" styleclass="button" immediate="true"/> </apex:tab> <apex:tab label="First tab" id="tab3" style="font-size:13px;"> <apex:commandButton value="Next Step" action="{!enabletab2}" rerender="tabPanel" styleclass="button" immediate="true"/> </apex:tab> </apex:tabpanel>
public void enabletab2() { selectedtab = 'tab2';} public void enabletab3() { selectedtab = 'tab3'; } public void enabletab4() { selectedtab = 'tab4'; } public void enabletab5() { selectedtab = 'tab5';}
how can i solve this
Please use "value" instead of "selectedtab"
Hi,
The following code is working.