function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srinu_SFDCsrinu_SFDC 

Putting Duplicate SelectList in a visual Force Page

I have been able to implement pagination in the my visual force page but stuck with duplicate selectList problem. My requirment requires the Page Size drop down to be shown  in top as well as bottom. Now even if I change the pageSize it gets resetted to default value

Please suggest if there is way to achieve it.

<apex:actionFunction name="topChangeLimit" action="{!changeLimit}" status="sortStatus" reRender="page,bottomPageSize"/> <apex:actionFunction name="bottomChangeLimit" action="{!changeLimit}" status="sortStatus" reRender="page,topPageSize"/> <apex:selectList id="topPageSize" value="{!limits}" size="1" onchange="topChangeLimit();return false;"> <apex:selectOptions value="{!items}"/> </apex:selectList> <apex:selectList id="bottomPageSize" value="{!limits}" size="1" onchange="bottomChangeLimit();return false;"> <apex:selectOptions value="{!items}"/> </apex:selectList>