<apex:page controller="pagicon">
<apex:sectionHeader subtitle="SOQL Offset Example" title="SqRt Table"/>
<apex:pageBlock >
<apex:pageBlockButtons location="top" >
<apex:outputPanel id="myButtons">
<apex:form >
<apex:commandButton action="{!Beginning}" title="Beginning" value="<<" disabled="{!disablePrevious}" reRender="myPanel,myButtons"/>
<apex:commandButton action="{!Previous}" title="Previous" value="<" disabled="{!disablePrevious}" reRender="myPanel,myButtons"/>
<apex:commandButton action="{!Next}" title="Next" value=">" disabled="{!disableNext}" reRender="myPanel,myButtons"/>
<apex:commandButton action="{!End}" title="End" value=">>" disabled="{!disableNext}" reRender="myPanel,myButtons"/>
</apex:form>
</apex:outputPanel>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Numbers and their counter valuess (Total List Size: {!total_size})" collapsible="false">
<apex:outputPanel id="myPanel">
<apex:pageMessages id="theMessages" />
<apex:pageBlockTable value="{!numbers}" var="nuuumbers" align="center">
<apex:facet name="header">Showing Page {!pageNumber} of {!totalPages}</apex:facet>
<apex:column value="{!nuuumbers.inn}"/>
<apex:column value="{!nuuumbers.co}"/>
<apex:facet name="footer"> Page ({!pageNumber} of {!totalPages})</apex:facet>
</apex:pageBlockTable>
</apex:outputPanel>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>