[jboss-user] [JBoss Seam] - Re: exception action

denis.diggin do-not-reply at jboss.com
Thu May 10 11:25:25 EDT 2007


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()

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044714#4044714

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044714



More information about the jboss-user mailing list