I happen not to understand this why I cannot get an alert on a p:ajaxStatus should an exception has occurred
I basically have this code in a facelet page
<p:ajaxStatus onerror="alert('Error occurred!')" />
<p:commandLink title="Delete" process="@this"
actionListener="#{myBean.deleteData}">
<h:outputText value="Delete" />
</p:commandLink>
On my bean, I raised an exception just to test the ajax status
public void deleteData(ActionEvent event) {
throw new CustomException("Testing");
}
I am not sure but the alert is not triggered on ajax request.
I checked firebug and saw this ajax response.
<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[5240489117331224423:7642972336085906948]]></update></changes></partial-response>
But when I checked the server log I saw this registered
javax.faces.event.AbortProcessingException: /pages/members.xhtml @208,128 actionListener="#{myBean.deleteData}": com.test.CustomException: Testing
Why is this so?
Primefaces 3.2/Glassfish/JSF 2.0