apex:actionStatus

A component that displays the status of an AJAX update request. An AJAX request can either be in progress or complete.

Use this component to get user input for a controller method that does not correspond to a field on an sObject. Only <apex:inputField> and <apex:outputField> can be used with sObject fields.

Example 

1<!--  Page: -->
2			
3<apex:page controller="exampleCon">
4    <apex:form>
5        <apex:outputText value="Watch this counter: {!count}" id="counter"/>
6        <apex:actionStatus startText=" (incrementing...)"
7            stopText=" (done)" id="counterStatus"/>
8        <apex:actionPoller action="{!incrementCounter}" rerender="counter"
9            status="counterStatus" interval="15"/>
10    </apex:form>
11</apex:page>
12			
13/*** Controller: ***/
14			
15public class exampleCon {
16    Integer count = 0;
17                        
18    public PageReference incrementCounter() {
19            count++;
20            return null;
21    }
22                        
23    public Integer getCount() {
24        return count;
25    }
26}

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
dirStringThe direction in which the generated HTML component should be read. Possible values include “RTL” (right to left) or “LTR” (left to right). 10.0global
forStringThe ID of an actionRegion component for which the status indicator is displaying status. 10.0global
idStringAn identifier that allows the actionStatus component to be referenced by other components in the page. 10.0global
langStringThe base language for the generated HTML output, for example, “en” or “en-US”. For more information on this attribute, see the W3C specifications. 10.0global
layoutStringThe manner with which the actionStatus component should be displayed on the page. Possible values include “block”, which embeds the component in a div HTML element, or “inline”, which embeds the component in a span HTML element. If not specified, this value defaults to “inline”. 10.0global
onclickStringThe JavaScript invoked if the onclick event occurs–that is, if the component is clicked. 10.0global
ondblclickStringThe JavaScript invoked if the ondblclick event occurs–that is, if the component is clicked twice. 10.0global
onkeydownStringThe JavaScript invoked if the onkeydown event occurs–that is, if the user presses a keyboard key. 10.0global
onkeypressStringThe JavaScript invoked if the onkeypress event occurs–that is, if the user presses or holds down a keyboard key. 10.0global
onkeyupStringThe JavaScript invoked if the onkeyup event occurs–that is, if the user releases a keyboard key. 10.0global
onmousedownStringThe JavaScript invoked if the onmousedown event occurs–that is, if the user clicks a mouse button. 10.0global
onmousemoveStringThe JavaScript invoked if the onmousemove event occurs–that is, if the user moves the mouse pointer. 10.0global
onmouseoutStringThe JavaScript invoked if the onmouseout event occurs–that is, if the user moves the mouse pointer away from the component. 10.0global
onmouseoverStringThe JavaScript invoked if the onmouseover event occurs–that is, if the user moves the mouse pointer over the component. 10.0global
onmouseupStringThe JavaScript invoked if the onmouseup event occurs–that is, if the user releases the mouse button. 10.0global
onstartStringThe JavaScript invoked at the start of the AJAX request. 10.0global
onstopStringThe JavaScript invoked upon completion of the AJAX request. 10.0global
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 10.0global
startStyleStringThe style used to display the status element at the start of an AJAX request, used primarily for adding inline CSS styles. 10.0global
startStyleClassStringThe style class used to display the status element at the start of an AJAX request, used primarily to designate which CSS styles are applied when using an external CSS stylesheet. 10.0global
startTextStringThe status text displayed at the start of an AJAX request. 10.0global
stopStyleStringThe style used to display the status element when an AJAX request completes, used primarily for adding inline CSS styles. 10.0global
stopStyleClassStringThe style class used to display the status element when an AJAX request completes, used primarily to designate which CSS styles are applied when using an external CSS stylesheet. 10.0global
stopTextStringThe status text displayed when an AJAX request completes. 10.0global
styleStringThe style used to display the status element, regardless of the state of an AJAX request, used primarily for adding inline CSS styles. 10.0global
styleClassStringThe style class used to display the status element, regardless of the state of an AJAX request, used primarily to designate which CSS styles are applied when using an external CSS stylesheet. 10.0global
titleStringThe text to display as a tooltip when the user’s mouse pointer hovers over this component. 10.0global

Facets 

Facet NameDescriptionAPI Version
startThe components that display when an AJAX request begins. Use this facet as an alternative to the startText attribute. Note that the order in which a start facet appears in the body of an actionStatus component does not matter, because any facet with the attribute name=“start” controls the appearance of the actionStatus component when the request begins.10.0
stopThe components that display when an AJAX request completes. Use this facet as an alternative to the stopText attribute. Note that the order in which a stop facet appears in the body of an actionStatus component does not matter, because any facet with the attribute name=“stop” controls the appearance of the actionStatus component when the request completes.10.0