I have a Bootstrap Nav Tabs (2 tabs) with some content in both tabs. The first tab has PageblockTable with StandardSetController Pagination.
When I click on Next button. The next set is rendered correctly. Everything is fine except both the tabs Home and Menu1 becomes inactive. The Home Tab should remain in Active. How to set that?
<apex:pageBlock id="pbId">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#home">Home</a></li>
<li><a data-toggle="tab" href="#menu1">Menu 1</a></li>
</ul>
<div class="tab-content">
<div id="home" class="tab-pane fade in active">
<h3>HOME</h3>
<p>Some content AND a PageblockTable with Standard Set Controller Pagination</p>
<apex:commandLink reRender="pbId" value="Next" action="{!next}"/>
</div>
<div id="menu1" class="tab-pane fade">
<h3>Menu 1</h3>
<p>Some content in menu 1.</p>
</div>
</div>
</apex:pageBlock>
How to set the class as active on clicking the commandlink. The commandlink should also execute {!next} method.
For reference, the next method is just this.
public void next(){
this.setcon.next();
setApplication();
}