I do not understand why I cannot get a warning about p: ajaxStatus if an exception occurs.
I mainly use this code on the facelet page
<p:ajaxStatus onerror="alert('Error occurred!')" />
<p:commandLink title="Delete" process="@this"
actionListener="#{myBean.deleteData}">
<h:outputText value="Delete" />
</p:commandLink>
In my bean, I threw an exception only to check ajax state
public void deleteData(ActionEvent event) {
throw new CustomException("Testing");
}
I am not sure, but the warning is not triggered by ajax request.
I checked firebug and saw this ajax answer.
<?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 logged
javax.faces.event.AbortProcessingException: /pages/members.xhtml @208,128 actionListener="#{myBean.deleteData}": com.test.CustomException: Testing
Why is this so?
Charts 3.2 / Glassfish / JSF 2.0
source
share