[jboss-user] [JBoss Seam] - Re: @Restrict - No redirection to Error Page
FabBoco
do-not-reply at jboss.com
Mon Mar 19 17:03:44 EDT 2007
Gavin,
thank you again form your help but I still am in the mess !
anonymous wrote :
| If you are calling this method as a value expression during the render phase of the JSF lifecycle, its not going to work. What you need to do is understand the JSF and servlet specs:
|
| There is no way I can send a redirect after I have already started to render the response. So Seam doesn't try to do that.
|
OK, I was trying to do a stupid think.
anonymous wrote :
| This is described in the documentation, of course
|
Seam documentation ? Where ? I am going trough it back and forth ...
Since, I can't check roles annotating a method called during the rendering phase, I have to make security check at page level works.
I wonder why this doesn't work
| <page view-id="/test3.xhtml" login-required="true" >
| <restrict>#{s:hasRole('Administrator')}</restrict>
| </page>
|
The check should be performed before starting the response rendering. Moreover I get it from the Seam documentation.
anonymous wrote :
| What you can do, however is send a http error. So it makes sense to have *two* exception handlers, one just for the redirect phase.
|
I can't understand what you mean, can you please provide a code fragment ?
Regards
Fab.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029503#4029503
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029503
More information about the jboss-user
mailing list