I'm new to visualforce programming and I would appreciate your advice on this matter.
Basically, I'm trying to create a dynamic VF page that will change its content when a button is clicked. My VF page gets a list of custom objects called project__c and I would like to let the user dynamically choose which list of projects he wants to view.
So I though of creating a button that will change the following line of code:
<apex:pageBlockTable value="{!projectList1}" var="item">
to:
<apex:pageBlockTable value="{!projectList2}" var="item">
Can anyone explain on the overall process and how could this be achieved?