"[EMAIL PROTECTED]" wrote : If the users have one role only, you could write it like this: | | <page view-id="/login.xhtml"> | | <navigation from-action="#{identity.login}"> | | <rule if="#{s:hasRole('user')"> | | <redirect view-id="/user.xhtml"/> | | </rule> | | <rule if="#{s:hasRole('poweruser')"> | | <redirect view-id="/poweruser.xhtml"/> | | </rule> | | </navigation> | | </page> | |
I'm getting an exception. | javax.faces.el.EvaluationException: Cannot get value for expression '#{s:hasRole('user')}' | This syntax works fine when I restrict page access using: | <page view-id="/user.xhtml"> | <restrict>#{s:hasRole('user') or s:hasRole('admin')}</restrict> | </page> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029369#4029369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029369 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user