1 Reply Latest reply on Apr 23, 2008 4:28 AM by Shane Bryzak

    How to redirect diff pages after login form?

    Gregory Nikle Apprentice

      Hi,
      I want to redirect user to different pages if user is member redirect to...or if admin redirect to...


      In seam example i found redirection to simple page:


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




              <navigation from-action="#{identity.login}">
                  <rule if="#{s:hasRole('member')}">
                      <redirect view-id="/pages/member.xhtml"/>
                  </rule>
                  <rule if="#{s:hasRole('administrator')}">
                      <redirect view-id="/pages/system.xhtml"/>
                  </rule>
              </navigation>



      Is this possible in that way?