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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to