I have a page block table whilch has two columns one with the data and the other with two buttons to move the records up and down.
I am not able to rerender the column on the change.
The code is as below:
<apex:form >
<apex:pageBlock title="Tab Order in Job Details" id="pb">
<apex:pageblockTable value="{!objlist}" var="v" style="width:700px" id="Pgb" >
<apex:column id="col1"> <apex:actionregion id="ar" > <apex:outputPanel value="{!v.Name}" style="width:20px"/> <apex:outputText value="{!v.Order__c}" style="width:20px"/> </apex:outputPanel > </apex:column>
<apex:column >
<apex:commandButton value="Up" title="Move Up" action="{!MoveUp}" reRender="ar" > <apex:param name="strTabID" value="{!v.id}" assignTo="{!tabid}"/> </apex:commandButton>
<apex:commandButton value="Down" title="Move Down" action="{!MoveDown}" reRender="ar"> <apex:param name="strTabID" value="{!v.id}" assignTo="{!tabid}"/></apex:commandButton>
</apex:column>
</apex:pageblockTable>
</apex:pageBlock>
</apex:form>
Please can someone suggest how can I achieve this.
Please help.
