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

asked 08.08.2018 at 02:39

tam_nguyenvan's gravatar image

tam_nguyenvan
(suspended)
accept rate: 0%

edited 14.08.2018 at 04:29

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×79
×8

Asked: 08.08.2018 at 02:39

Seen: 1,380 times

Last updated: 14.08.2018 at 04:29