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
SN SFSN SF 

apex:selectList is not working when rendered on top and bottom of the VF page

Hi -

I have a VF page with following structure . I included a Selectlist inside a PageBlockButton, so that user can set the pagination from bottom and top of the page 
When I set the page size  from top dropdown list it works fine . However when I update the page size from bottom , it doesn't work ..it just refresh and reset back to the previous value 
For ex : When the page is loaded I will set the page size to "5" from top dropdown list , the same value will be displayed on botton dropdown list ., now i will change the page size to "10" in bottom dropdown list . It will reset back to "5"

CODE:
<apex:actionFunction name="refreshPageSize1" action="{!refreshPageSize1}" status="fetchStatus" reRender="PBID" oncomplete="window.scrollTo(0,0);"/>

<apex:pageblockButtons style="width:100%;">
<div align="Right" style="margin-Top:10px;" >                     
<apex:outputPanel > 
    <apex:outputPanel >                      
    <apex:actionStatus id="fetchStatus" >
    <apex:facet name="start" >
    <img src="/img/loading.gif" />                    
    </apex:facet>
    </apex:actionStatus> &nbsp;&nbsp;&nbsp;
    </apex:outputPanel>
    
    <apex:outputText >
    {!(setCon.pageNumber * size)+1-size}-{!IF((setCon.pageNumber * size)>noOfRecords, noOfRecords,
     (setCon.pageNumber * size))} of {!noOfRecords} 
    </apex:outputText> &nbsp;&nbsp;&nbsp;
    
    <apex:selectList value="{!size}" multiselect="false" size="1" onchange="refreshPageSize1();" styleClass="dropdown_btn" >
    <apex:selectOptions value="{!paginationSizeOptions}"/>
    </apex:selectList> 

<apex:commandButton status="fetchStatus" rerender="PBID" value="prev” action="{!prev}" />
<apex:commandButton status="fetchStatus" rerender="PBID" value = “Nxt" action="{!nxt}" />                     
<apex:commandButton status="fetchStatus" rerender="PBID" value =”SAVE" action="{!save}" /> 
</apex:outputPanel>
</div>
</apex:pageblockButtons>

Can someone please help me on this ?

Thanks in Advance !

Regards,
SN

 
Donald LuteDonald Lute
All people love pleasure, but not always you can do it yourself. So, if you are a woman you can try female ejaculation toys (https://mytoyforjoy.com/best-vibrator-for-squirting/). Maybe you will find something for yourself.
SN SFSN SF
Hi ,
Can someone please help me on this issue ?

Regards,
SN