[SalesForce] commandLink rerender pageblockTable not refreshed after save

<apex:pageBlock id="SortByDirectionBlock" rendered="{!checkHFStatus}">
     <apex:commandLink action="{!saveSelectedMatches}" styleClass="navbar-link"  value="Save Students" reRender="StudentListBlock"  status="waitMsg">
     <apex:param value="{!sortExpression}" ></apex:param>
     </apex:commandLink>
</apex:pageBlock>


 <apex:outputPanel id="StudentListBlock" >                             
 <apex:pageBlockTable value="{!engListWrap}" var="item" rendered="{!IF(engListWrap.Size > 0, true, false)}">
</apex:pageBlockTable>
</outputPanel>

I tried everything, but the pageblocktable is not refreshed after save!!!

I know we dont need to use ActionSupport for commandLink. this should work. Did I miss anything?

Best Answer

I got the solution. At the end of the save method, Im calling the method which fills my pageblocktable again. This way, after the records are saved, im re fetching the data to display. Because on re-render the records are not refreshed even though the pageblocktable is refreshed.

Related Topic