<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Problem with handling exception by AjaxExceptionHandler</title><link>https://answers.axonivy.com/questions/3383/problem-with-handling-exception-by-ajaxexceptionhandler</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I faced a problem when trying to use AjaxExceptionHandler as follow link: &lt;a href="https://www.primefaces.org/showcase/ui/misc/exceptionHandler.xhtml"&gt;https://www.primefaces.org/showcase/ui/misc/exceptionHandler.xhtml&lt;/a&gt; that the implicit object pfExceptionHandler was not updated automatically when exception occured. Even if I have tried with AjaxExceptionHandler in managed bean.&lt;/p&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;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);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but the exception content still not updated.&lt;/p&gt;
&lt;p&gt;Does any body experienced with this?&lt;/p&gt;
&lt;p&gt;Thanks,
Tam Nguyen&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3383/problem-with-handling-exception-by-ajaxexceptionhandler" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 30 Jul 2024 10:01:04 -0000</lastBuildDate></channel></rss>