title: Is it possible to disable AJAX in RichFaces?
body: <p>Is it possible in a Seam/RichFaces page to disable AJAX so requests are sent via regular server-client request, where the entire page is refreshed instead of individual elements? I'm using an <code>a4j:outputPanel</code> and an <code>a4j:commandButton</code> and need to have them not use AJAX in some cases via a toggle button.</p>
  
  <p>Here's a code snippet from the page. Thanks.</p>
  
  <pre><code>&lt;a4j:outputPanel id="output" rendered="#{not empty overtime.overtimeItems}" 
      ajaxRendered="true"&gt;
    &lt;c:forEach items="#{overtime.overtimeItems}" var="oc"&gt;
      &lt;h:outputLabel value="#{oc.dateLabel}"
        style="font-weight:#{(oc.id == 1) ? 'bold' : 'normal'}" 
        for="#{oc.overtimeDateId}" /&gt;
      &lt;rich:calendar value="#{oc.overtimeDate}" 
        requiredMessage="Date 1 is required."
        id="#{oc.overtimeDateId}" datePattern="MM-dd-yyyy" 
        required="#{oc.id == 1 ? true : false}" firstWeekDay="0"&gt;
        &lt;a4j:support event="onchanged" 
           reRender="#{oc.overtimeHoursId}, #{oc.overtimeHoursOutputId}" 
           ajaxSingle="true"/&gt;
      &lt;/rich:calendar&gt;
      ......
  
    &lt;/c:foreach&gt;
  &lt;/a4j:outputPanel&gt;
  
  &lt;a4j:commandButton action="#{utilities.sendEmail('/pages/overtime/mail.xhtml')}" 
      type="submit" value="Submit" 
      reRender="status, valid1, valid2" eventsQueue="foo" status="status" 
      onclick="this.disabled=false" id="btnSubmit"
      oncomplete="#{facesContext.maximumSeverity == null ? 'Richfaces.hideModalPanel(\'mpErrors\');' : 'Richfaces.showModalPanel(\'mpErrors\'); this.disabled=false'}"/&gt;
  </code></pre>