Problem with handling exception by AjaxExceptionHandler
Hi all,
I faced a problem when trying to use AjaxExceptionHandler as follow link: https://www.primefaces.org/showcase/ui/misc/exceptionHandler.xhtml that the implicit object pfExceptionHandler was not updated automatically when exception occured. Even if I have tried with AjaxExceptionHandler in managed bean.
Like this:
AjaxExceptionHandler aeh = new AjaxExceptionHandler();
aeh.setType("ch.ivyteam.util.IvyRuntimeException");
aeh.setUpdate("exceptionInfo");
aeh.setOnexception("updateExceptionInfo();");
FacesContext context = FacesContext.getCurrentInstance();
context.getApplication().evaluateExpressionGet(context, "#{pfExceptionHandler}", ExceptionInfo.class);
but the exception content still not updated.
Does any body experienced with this?
Thanks,
Tam Nguyen