I’m using primefaces tabview .
<p:tabView>
<p:tab id="basic" title="Login">
</p:tab>
<p:tab id="personal" title="Personal">
</p:tab>
<p:tab id="contact" title="Contact">
</p:tab>
</p:tabView>
On viewing the saved information, suppose I need to edit the data on ‘contact’ tab only, how can I redirect or focus to that tab directly without going to other tabs.Can I do it with javaScript?
My primefaces version is: primefaces-3.0.M3 with JSF and Google Cloud SQL
Use
f:ajax render=”myid”
on the selection logic and then give id
“myid” to the
p:tabView id=”myid” and then use Rendered attribute on each tab whom you want to display for ex:
rendered=”#{selectionlogicvariable==tabid}”