Use Of Standard Set Of Controller
The Code used is as follows : VF Page : <apex:page controller="opportunityList2Con"> <apex:form > <apex:pageBlock > <apex:pageBlockTable value="{!opportunities}" var="o"> <apex:column value="{!o.name}"/> <apex:column value="{!o.closedate}"/> </apex:pageBlockTable> <apex:commandButton rendered="{!setCon.hasPrevious}" value="first" action="{!setCon.first}"/> ...