[jboss-user] [JBoss Seam] - Re: How do I select an initial page after login chosen by us

shane.bryzak@jboss.com do-not-reply at jboss.com
Thu Mar 15 20:47:55 EDT 2007

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>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028624#4028624

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028624

More information about the jboss-user mailing list