[jboss-user] [JBoss Seam] - Re: How do I select an initial page after login chosen by us
zzztimbo
do-not-reply at jboss.com
Mon Mar 19 12:21:44 EDT 2007
"shane.bryzak at jboss.com" 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
More information about the jboss-user
mailing list