4 Replies Latest reply on Mar 31, 2009 9:29 PM by Guillermo Ortiz

    Redirect from Login??

    Guillermo Ortiz Newbie

      Hi,


      I want that after a user login in the application to forward to a page that I want but always remains in the page of login...


      I've,



      components.xml:
      <event type="org.jboss.seam.security.notLoggedIn">
             <action execute="#{redirect.captureCurrentView}"/>
         </event>
         <event type="org.jboss.seam.security.loginSuccessful">
             <action execute="#{redirect.returnToCapturedView}"/>
      </event>
      
      
      pages.xml:
      <page view-id="/login.xhtml">
              <navigation>
                      <rule if-outcome="true">
                              <redirect view-id="/welcome.xhtml"></redirect>
                      </rule>
              </navigation>
      </page>
      
      
      
      public class Authenticator
          public boolean authenticate(){
              return true;
          }
      }
      



      ¿?¿?¿?¿


      Thanks.