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

    Login Redirection

    vikram.vikram.chhetry.gmail.com

      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
          vasana

          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>