10 Replies Latest reply on Mar 19, 2007 8:57 PM by Shane Bryzak

    How do I select an initial page after login chosen by user r

    tim chan Newbie

      I'm trying to edit my pages.xml to send a user to a specific page based on their user role. How do I do that?

      <page view-id="/login.xhtml">
       <navigation from-action="#{identity.login}">
       <rule if-outcome="loggedIn">
       <redirect view-id="/user.xhtml"/>
       </rule>
       </navigation>
      </page>
      


      For instance, how do I modify the above so that users with role = 'user' will be sent to user.xhtml while users with role = 'poweruser' will be sent to poweruser.xhtml?