title: Primefaces p:ajaxStatus onerror not called
body: <p>I'm trying to handle a ViewExpiredException exception on an ajax call using primefaces 2.2.1 on glassfish 3.1.  I have an ajaxStatus like this:</p>
  
  <pre><code>  &lt;p:ajaxStatus id="ajaxStatus"  
                  onstart="startAjaxDisplay()" 
                  onerror="ajaxErrorHandler()" 
                  oncomplete="endAjaxDisplay()"/&gt; 
  </code></pre>
  
  <p>The onstart and oncomplete get called as expected.  I know the ajaxErrorHandler() works because I put it in oncomplete instead and it got called.  All it's doing right now is popping up an alert().  I set up my test and the response from the server looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;partial-response&gt;
    &lt;error&gt;
      &lt;error-name&gt;class javax.faces.application.ViewExpiredException&lt;/error-name&gt;
      &lt;error-message&gt;&lt;![CDATA[viewId:/index.xhtml - View /index.xhtml could not be restored.]]&gt;&lt;/error-message&gt;
    &lt;/error&gt;
    &lt;changes&gt;
      &lt;extension primefacesCallbackParam="validationFailed"&gt;{"validationFailed":false}&lt;/extension&gt;
    &lt;/changes&gt;
  &lt;/partial-response&gt;
  </code></pre>
  
  <p>That's all as expected except the onerror just doesn't get called.  Am I misunderstanding how this is supposed to work?</p>