[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

markfoerstein do-not-reply at jboss.com
Wed Apr 11 11:44:27 EDT 2007


Im facing a similar problem.

When an AuthorizationException raises:
Using @Restrict at the class level gives me the default error page.
@Name("sphconsullanEditor")
  | @Stateful
  | @Restrict
  | public class SphConsullanEditorBean implements SphConsullanEditor {
  | ...
  | 
Using @Restrict at the method level, redirection works fine.
@Restrict
  | public String create() {
  | ...
  | 

It is just a matter of moving the @Restrict annotation from one place to another, so clearly everything else is configured correctly. Also, all other redirections on pages.xml work fine, like login-required, no-conversation, NotLoggedInException, etc.

Thoughts? ;-)

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

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



More information about the jboss-user mailing list