File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Custom JSF2.0 ExceptionHandler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom JSF2.0 ExceptionHandler" Watch "Custom JSF2.0 ExceptionHandler" New topic
Author

Custom JSF2.0 ExceptionHandler

Justin Cobman
Greenhorn

Joined: May 31, 2008
Posts: 4
hello

I successfully implemented custom ExceptionHandler for my JSF2.0 application. Exception is caught and proper error message is shown.
Now i need properly handle exception.

I have form #1 where I have a list of elements. In form #1 i navigate to form #2 using such command:


In form #2 i have shown objects that are initialized on actionListener invoked in form #1 ${actionAdminBean.loadActionGroupAction}


Now here is the deal:
when i submit new values into form #2 and my exception occurs. I navigate to the same page and show exception message.
But the elements that are initialized in ${actionAdminBean.loadActionGroupAction} (on action witch navigates from form#1 to form#2) actionListener are not shown(obviously, actionListener is not invoked).

My question would be how do I replay previous actions executed to show current view with exception message in universal way?
Maybe i shouldn't replay all actions, probably with restoreView phase I should get those values?
Any suggestions?

Thank you in advance!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom JSF2.0 ExceptionHandler
 
Similar Threads
hi
Unable to find setter method for attribute: locale
JSF with RichFaces Calendar
JSF : commandButton in dynamically loaded <ui:include> page doesn't work
Struts ExceptionHandler - configure using Spring