function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Madhura BMadhura B 

Problem with actionStatus



When i click on the commandLink action status changes to (incrementing...) but it doesn't stop. that is the stoptext (done) doesn't appear in the screen and i am guessing because of this reRender on the command link is also not working. Can someone suggest how to fix this please?



<apex:column >
               <apex:commandLink action="{!incrementCounter}" target="_blank" status="counterStatus" reRender="docs" >
                 <apex:param assignTo="{!SelectedId}" name="selId" value="{!d.Id}"/>     
                    <apex:image url="{!URLFOR($Resource.LibraryImages)}" title="Click to Download" />


<apex:actionStatus startText=" (incrementing...)" stopText="(done)" id="counterStatus" />




For the best help, please post your entire VF page in a formatted code block.

Madhura BMadhura B
<apex:page sidebar="false" Controller="MyLibrary">
 <apex:form >
   <apex:pageBlock >
    <apex:pageBlockSection columns="1">
     <apex:PanelGrid width="30%">
       <apex:pageBlockSection >
           <apex:outputLabel value="Parent Folder" styleClass="labelCol first last" for="parent"/> 
               <apex:selectList value="{!SelectedParentFolder}" size="1" id="parent" >
                      <apex:selectOptions value="{!ParentFolderList}" />
                       <apex:actionSupport event="onchange" reRender="folder"/>
        <apex:PanelGrid id="folder" width="30%">
             <apex:pageBlockSection >
             <apex:outputLabel value="Sub Folder" styleClass="labelCol first last" for="sfolder"/> 
                   <apex:selectList value="{!SelectFolder}" size="1" id="sfolder" >
                          <apex:selectOptions value="{!FolderList}" /> 
                           <apex:actionSupport event="onchange" reRender="docs" action="{!Go}"/>
<apex:pageBlock id="docs">   
<apex:pageBlockSection columns="1" >
    <apex:pageMessage severity="info" summary="Sorry the Folder has no Content to display." rendered="{!if(UserLib.size!=0,if(Docs.size==0,true,false),false)}"/>
   <apex:pageBlockTable value="{!Docs}" var="d" rendered="{!if(Docs.size>0,true,false)}"> 
     <apex:column headerValue="Name" >
       <apex:outputField value="{!d.Name__c}" />
     <apex:column headerValue="Description">
       <apex:outputField value="{!d.Description__c}" />
     <apex:column headerValue="Type">
       <apex:outputField value="{!d.Type__c}" /> 
    <apex:column headerValue="Uploaded By">
       <apex:outputField value="{!d.Uploaded_By__c}" /> 
     <apex:column headerValue="Created Date">
       <apex:outputField value="{!d.Document_Created_On__c}" /> 
     <apex:column >                  
       <apex:commandLink action="{!incrementCounter}" target="_blank" status="counterStatus"  
reRender="docs" > <apex:param assignTo="{!SelectedId}" name="selId" value="{!d.Id}"/> <apex:image url="{!URLFOR($Resource.LibraryImages)}" title="Click to Download" /> </apex:commandLink> </apex:column> <apex:column headerValue="Downloaded" > <apex:outputText value="{!d.Counter__c}" /> </apex:column> </apex:pageBlockTable> <apex:actionStatus startText=" (incrementing...)" stopText="(done)" id="counterStatus" /> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>



I would suggest that you wrap your <apex:pageBlock id="docs"> with a <apex:outputPanel> tags and then set your rerender not to the id of the page block but to the id of the outputpanel.  Let me know if this doesn't work . . . .

Madhura BMadhura B

It still doesn't work.. It does not go to the stop text.



I am not quite sure why your code doesn't work, but here is a working verion built off of the documentation's example.




<apex:page controller="test">
    <apex:outputpanel id ="main">
            <apex:panelGrid width="30%">
                <apex:pageBlocksection columns="1">
                    <apex:outputText value="Watch this counter: {!count}" id="counter"/>
                    <apex:actionStatus startText=" (incrementing...)" stopText="(done)" id="counterStatus" />        
                    <apex:commandlink  action="{!incrementCounter}" value="Click me!" rerender="main" status ="counterStatus" />



public class test {

    integer count = 0;
    public PageReference incrementCounter() {
            return null;
    public Integer getCount() {
        return count;