Questions asked by tam_nguyenvanhttps://answers.axonivy.com/questions/asked-by/1023/tam_nguyenvan/?type=rssQuestions asked by <a href="/users/1023/tam_nguyenvan" >tam_nguyenvan</a>enWed, 08 Aug 2018 02:39:32 -0400Problem with handling exception by AjaxExceptionHandlerhttps://answers.axonivy.com/questions/3383/problem-with-handling-exception-by-ajaxexceptionhandler<p>Hi all,</p> <p>I faced a problem when trying to use AjaxExceptionHandler as follow link: <a href="https://www.primefaces.org/showcase/ui/misc/exceptionHandler.xhtml">https://www.primefaces.org/showcase/ui/misc/exceptionHandler.xhtml</a> that the implicit object pfExceptionHandler was not updated automatically when exception occured. Even if I have tried with AjaxExceptionHandler in managed bean.</p> <p>Like this:</p> <pre><code>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); </code></pre> <p>but the exception content still not updated.</p> <p>Does any body experienced with this?</p> <p>Thanks, Tam Nguyen</p>tam_nguyenvanWed, 08 Aug 2018 02:39:32 -0400https://answers.axonivy.com/questions/3383/problem-with-handling-exception-by-ajaxexceptionhandlerexceptionhandlingjsf