• sakshi pandey
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Here's a portion of a VF component.  I'm trying to get a command button to display an action Status.  But it doesn't work.

 

Will the "status=" option not work on a commandButton when it performs a regular action method?  I'm thinking maybe to get it to work you have to remove the action, add an onClick and then have an actionFunction call the actionMethod and have a refresh specified on the actionFunction.

 

 

	        <apex:actionStatus id="refreshStatus" layout="block"  >
              <apex:facet name="start" > 
              <apex:outputPanel >
                  <apex:image value="{!$Resource.Loader}"  rendered="true"/>&nbsp;&nbsp;&nbsp;
                  <apex:outputLabel value="Working . . ." style="font-weight:bold; color:red;"/>
              </apex:outputPanel>
              </apex:facet>
     	</apex:actionStatus>
	<br/>
	<apex:pageBlock >
	  <apex:pageBlockButtons >
	    <apex:commandButton value="Go to 1" action="{!theController.goto1}" disabled="true"/>
	    <apex:commandButton value="Go to 2" action="{!theController.goto2}" status="refreshStatus"/>
	    <apex:commandButton value="Go to 3" action="{!theController.goto3}" status="refreshStatus"/>
	  </apex:pageBlockButtons>