Hello,
is it possible in exception handling in page.xml to ignore the AbortProcessingException and no redirect to the error page but only terminate the processing of the current event?
<h:form id="myForm">
<h:commandLink id="view01" value="link1"
action="page01" actionListener="#{myview.myactionListener}" />
<h:commandLink id="view02" value="link2"
action="page02" actionListener="#{myview.myactionListener}" />
</h:form>
public void myactionListener(ActionEvent actionEvent){
.
.
if(....){
StatusMessages.instance()
.addToControl("myForm",StatusMessage.Severity.ERROR, message, null);
throw new AbortProcessingException();
}
<page.xml>
...
<exception>
<end-conversation />
<redirect view-id="/error.jsp">
</redirect>
</exception>
</pages>
I'd like only view the current page with the error message
Thanks you