+ Start a Discussion

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>