action status in visualforce

Action status is used to display the status of AJAX request. Following is an example for action status:-
Visualforce Page

<apex:page controller="actionstatusDemoController">
 <apex:form >
   <apex:pageblock id="pgblck">
     <apex:actionStatus id="actstatus" >
        <apex:facet name="start" >
          <img src="/img/loading32.gif" />                    
        </apex:facet>
     </apex:actionStatus>
     <apex:commandButton value="Submit" status="actstatus" action="{!demomethod}" reRender="pgblck"/>
   </apex:pageblock>
 </apex:form>

</apex:page>

Controller

Public with sharing class actionstatusDemoController {
 Public actionstatusDemoController(){
 }

 Public void demomethod(){
 }

}

1 comment:

  1. Hi,
    Plz solve this.
    How to hide a set of records for a particular user.
    Ex: hiding 50 records among 100 records for a particular user.

    ReplyDelete