This content has been marked as final.
Show 3 replies
-
1. Re: exception action
christian.bauer May 10, 2007 10:32 AM (in response to denis.diggin)You could redirect to a page with a page action.
-
2. Re: exception action
christian.bauer May 10, 2007 10:34 AM (in response to denis.diggin)Note that pages defined in pages.xml don't have to be real pages, you can use the render element inside a page element to render something else than the name specified.
-
3. Re: exception action
denis.diggin May 10, 2007 11:25 AM (in response to denis.diggin)Works, thanks.
<!-- Catch all exception handler --> <exception class="java.lang.Throwable"> <redirect view-id="/notify.xhtml"> <message severity="warn">#{m.exception_general}</message> </redirect> </exception> <!-- notify the administrator that an exception has occurred --> <page view-id="/notify.xhtml" action="#{exceptionNotificationService.send}"> <navigation> <redirect view-id="/error.xhtml" /> </navigation> </page> Use Contexts.getConversationContext().get("org.jboss.seam.handledException") to get the exception in ExceptionNotificationService.send()