May 2, 2011

apex:ActionStatus - Making It Work

Just a quick snippet today! All too often I add an <apex:actionStatus> tag to a page and find that it doesn't actually work. The quick solution in most of these cases? Make sure it's also specified in the rerender attribute of the tag that's firing the action:

<apex:actionStatus id="SaveStatus"> 
 <apex:facet name="start">Saving...</apex:facet> 
 <apex:facet name="stop"></apex:facet> 
</apex:actionStatus> 
 
<apex:actionSupport event="onchange" action="{!SaveProgress}" status="SaveStatus" rerender="SaveStatus"/>