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
jeremy_rossjeremy_ross 

actionStatus start facet never displays

I'm having a problem getting the start status to render.  I'd expect it to show up when clicking the Search button, but it doesn't.  The page looks something like this:

Code:
<apex:commandButton id="searchButton" reRender="testList" value="Search" />
<apex:outputPanel id="testList">
 <apex:actionStatus>
  <apex:facet name="stop">
     test stop text
  </apex:facet>
  <apex:facet name="start">
    <apex:repeat value="{!records}" var="record" id="recordRepeat">
   <!-- omitted -->
   </apex:repeat>
  </apex:facet>
 </apex:actionStatus>
</apex:outputPanel>

 Is there something else required in order to get the start facet to show up? 

TIA

Jeremy

 



Message Edited by jeremy_ross on 09-28-2008 09:33 PM
TehNrdTehNrd
You almost had it. You need the attribute status in the command button to point to the Id of the actionStatus component.


Code:
<apex:commandButton id="searchButton" reRender="testList" value="Search" status="status"/>
<apex:outputPanel id="testList">
 <apex:actionStatus id="status">
  <apex:facet name="stop">
     test stop text
  </apex:facet>
  <apex:facet name="start">
    <apex:repeat value="{!records}" var="record" id="recordRepeat">
   <!-- omitted -->
   </apex:repeat>
  </apex:facet>
 </apex:actionStatus>
</apex:outputPanel>

 




Message Edited by TehNrd on 09-28-2008 10:01 PM
jeremy_rossjeremy_ross
You rock.  That fixed it.  Makes me wonder how this example works, considering it doesn't use the status attribute http://www.salesforce.com/us/developer/docs/pages/index_CSH.htm#pages_quick_start_ajax_async_status.htm


waylonatcimwaylonatcim

I actually couldn't get that example to work until I added the status attribute in commandLink and the id attribute in actionStatus.