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

2007-04-11 Thread markfoerstein
Forgot to say... Im using version 1.2.1GA. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036429#4036429 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036429 ___ jboss-user

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

2007-04-11 Thread [EMAIL PROTECTED]
Fundamentally they're the same. SecurityInterceptor treats the @Restrict in exactly the same way, no matter whether it's specified on the method or the class. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036442#4036442 Reply to the post :

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

2007-03-17 Thread hamtho2
As a lot of people still have the same problems, would this be something to file in JIRA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029028#4029028 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029028

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

2007-03-17 Thread [EMAIL PROTECTED]
Negative. This works beautifully in me. Use your debuggers and follow the examples! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029045#4029045 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029045

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

2007-03-17 Thread [EMAIL PROTECTED]
To repeat: Generate an app using seam-gen. Generate an action. Add @Restrict(#{identity.loggedIn}) to the action method. Watch what happens. Now fix your code to look like seam-gen. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029047#4029047 Reply to the

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

2007-03-17 Thread fhh
I can confirm this. @Restrict(#{identity.loggedIn}) on action methods also works for me. However, I have not tried to throw an action method programmatically whithin that methhod. Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029090#4029090

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

2007-03-15 Thread lisaanm
Hi., I have the same question. If I programmatically throw NotLoggedInException, then the page is not redirected to the other page that is defined as below in pages.xml file | exception class=org.jboss.seam.security.NotLoggedInException | redirect view-id=/login.xhtml |

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

2007-03-05 Thread tazman
I have also a similar problem with login redirection. If I set login-required to true for a page in pages.xml, everything works as expected. However, when I programmatically throw NotLoggedInException I get the debug page: if (!Identity.instance().isLoggedIn()) | throw new

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

2007-03-01 Thread [EMAIL PROTECTED]
Yes, use a seam exception handler defined in pages.xml. This is in the seamspace example i believe. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024336#4024336 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024336

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

2007-03-01 Thread hamtho2
okay - I will have a look. BTW: Is there any way to include the role through a static variable from an interface, so that you can replace @Restrict(#{s:hasRole(''admin)}) with anything like this @Restrict(#{s:hasRole(SecurityRoles.ADMIN)}) ? View the original post :

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

2007-03-01 Thread hamtho2
sorry, but I did it the same way like in the examples. But it´s still the same. It works if the restriction comes through the pages.xml but not if it comes through the backing-bean. Any further suggestions? Thomas View the original post :

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

2007-03-01 Thread [EMAIL PROTECTED]
Do you have the SeamFilter installed in web.xml? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024371#4024371 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024371 ___ jboss-user

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

2007-03-01 Thread hamtho2
I did it this way: | filter | filter-nameSeam Filter/filter-name | filter-classorg.jboss.seam.web.SeamFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Filter/filter-name | url-pattern/*/url-pattern |

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

2007-03-01 Thread hamtho2
If it´s of any importance: I´m using trinidad as well, but this shouldn´t be a problem, should it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024379#4024379 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024379