1 Reply Latest reply on May 12, 2008 10:44 AM by Ananthan Rudran

    Login Redirection

    Vikram Chhetry Newbie

      Hi All,


      I have 3 type of users.
      I want to redirect them to different-2 landing pages after they login.


      How do I do that?
      Can anyone send me a link where I can read this.


      Thanks,


      Vikram

        • 1. Re: Login Redirection
          Ananthan Rudran Newbie

          you can add a xml file like login.page.xml do a similar check like


            <?xml version="1.0" encoding="UTF-8"?>
          <page xmlns="http://jboss.com/products/seam/pages"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">
          
             <navigation from-action="#{identity.login}">
                <rule if="#{identity.loggedIn and identity.hasRole("admin")}">
                   <redirect view-id="/adminhome.xhtml"/>
                </rule>
             </navigation>
          
          </page>