apex:actionStatus #inSalesforce

apex:actionStatus #inSalesforce


To get the status of an AJAX update request. An AJAX request can either be in progress or complete.


Example:

Page:

<apex:page controller="sampleActionStatusController">
    <apex:form>
        <apex:outputText value="The Counter: {!count}" id="counter"/>
        <apex:actionStatus startText=" (incrementing...)"
            stopText=" (done)" id="counterStatus"/>
        <apex:actionPoller action="{!incrementCounter}" rerender="counter"
            status="counterStatus" interval="15"/>
    </apex:form>
</apex:page>

Class:

public class sampleActionStatusController {
    Integer count = 0;                  
    public PageReference incrementCounter() {
            count++;
            return null;
    }                        
    public Integer getCount() {
        return count;
    }
}




Reference: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionStatus.htm

Comments