+ Start a Discussion
sathishsfdcsathishsfdc 

display pageblock based on tab

Hi,

I have a requirement to displaydifferent  pageblocks based on the tab which i click.Any sample examples would be helpful
Pankaj_GanwaniPankaj_Ganwani
Are you using apex:tabPanel tag to show tab bar on your page? If so, then you can directly wrap related pageblocks within tabs itself. Example:

<apex:tabpanel>
<apex:tab>
<apex:pageBlock/>
</apex:tab>
<apex:tab>
<apex:pageBlock/>
</apex:tab>
​......
</apex:tabPanel>