[jboss-user] [JBoss Seam] - Re: Redirect based on identity-roles
lsabin
do-not-reply at jboss.com
Fri Dec 14 13:57:45 EST 2007
Hi.
I am having problems with the suggested solution. This is the relevant portion of my pages.xml:
| <navigation from-action="#{identity.login}">
| <rule if="#{s:hasRole('user')}">
| <redirect view-id="/details.xhtml"/>
| </rule>
|
| <rule if="#{s:hasRole('admin')}">
| <redirect view-id="/home.xhtml"/>
| </rule>
| </navigation>
|
The first time the user with role 'user' logs it gets redirected to the home.xhtml page. But if I logout and log in again it works and redirects to details.xhtml.
Could someone explain this behaviour?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113048#4113048
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113048
More information about the jboss-user
mailing list