[jboss-user] [JBoss Seam] - Re: conditional redirect on exception - how?

tynor do-not-reply at jboss.com
Thu Aug 16 23:04:53 EDT 2007


Thanks Matt!

That works.    And it turns out that EL _is_ evaluated in the message, so i can generate two different messages depending on the cause of the exception:


  | <exception class="org.jboss.seam.security.AuthorizationException">
  |    <redirect view-id="/handleAuthorizationException.xhtml">
  | 	<message>#{(empty authenticator.currentClient) ? 'You must select a client before accessing any other pages' : 'You don't have permission to do this'}</message>
  |    </redirect>
  |  </exception>
  | 


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

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



More information about the jboss-user mailing list