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
HarithaAkellaHarithaAkella 

Pagination links prev, next not working when pageblocktable column is changed to inputtext?

I figured out that the pagination:

<apex:pageBlockButtons location="Bottom">
<apex:commandLink value="First" action="{!First}"/> &nbsp;
<apex:commandLink value="Next" action="{!Next}"/> &nbsp;
<apex:commandLink value="Previous" action="{!Previous}"/> &nbsp;
<apex:commandLink value="Last" action="{!Last}"/>
</apex:pageBlockButtons>

my next and prev links implemented as above work fine when I have pageblocktable fields as
<apex:column value="{!ord.SO__c}" style="width: 20px; height: 20px"/>

Once you change to InputText value, that's when I see the error "Modified rows exist in the records collection! "
<apex:column> <apex:InputText value="{!ord.SO__c}" style="width: 20px; height: 20px"/>  </apex:column>

But I have the requirement to have input fields in my pageblocktable in visualforce page,  I just dont want to view them, i should be able to edit them but also have the pagination work preoperly!
Best Answer chosen by HarithaAkella
HarithaAkellaHarithaAkella
Ok, I have found the solution for this! Just change the <apex:InputText > to <apex:InputField> , That solves the issue!