Hide and show multiple pageBlocks in Salesforce
Sample code: Visualforce page: <apex:page controller="sample"> <apex:form > <apex:pageBlock > <apex:commandButton value="A Section" action="{!callA}"/> <apex:commandButton value="B Section" action="{!callB}"/> </apex:pageBlock> <apex:pageBlock rendered="{!Abool}"> <apex:outputText value="This is A section"/> </apex:pageBlock> ....