This content has been marked as final.
Show 4 replies
-
1. Re: redirect based on roles
pmuir Dec 19, 2007 5:26 PM (in response to lsabin)Can you use your debugger to see what roles the user has when the s:hasRole check is run?
-
2. Re: redirect based on roles
lsabin Dec 20, 2007 1:02 PM (in response to lsabin)Hi.
If i understand correctly the preAuthorizationRoles gets "promoted" to real roles after the s:hasRole is evaluated. That's why the first time the user does not have the role.
Is there any way to fix this behaviour?
A silly question, how to debug seam applications? I mean debugging the seam core.
Regards. -
3. Re: redirect based on roles
milli Jan 12, 2008 2:31 AM (in response to lsabin)I have similar rules for my login but I get an exception "javax.el.ELException: Function 's:hasRole' not found". But I could have s:hasRole in xhtml pages to do conditional rendering. I am using Seam 1.2.1. Any ideas?
But if it does not work like you mentioned then it is not of much use for me either. -
4. Re: redirect based on roles
milli Jan 12, 2008 2:32 AM (in response to lsabin)"milli" wrote:
I have similar rules for my login but I get an exception "javax.el.ELException: Function 's:hasRole' not found". But I could have s:hasRole in xhtml pages to do conditional rendering. I am using Seam 1.2.1. Any ideas?
But if it does not work like you mentioned then it is not of much use for me either.
Never mind. I found in another thread that it was a bug in 1.2.1.