1 Reply Latest reply on Apr 17, 2008 4:24 PM by lexsoto

    Login Redirection and pageflows

    rhardy5014.rhardy5014.aol.com

      Hi,


      I am using Seam v2.0.0GA and have a problem when using the login redirection feature alongside a pageflow definition.


      I have configured login redirection by inserting:


      <event type="org.jboss.seam.notLoggedIn">
      
           <action execute="#{redirect.captureCurrentView}"/>
      
      </event>
      
      <event type="org.jboss.seam.postAuthenticate">
      
           <action execute="#{redirect.returnToCapturedView}"/>
      
      </event>



      in components.xml.


      I have also set up a login page, and a login-protected page in pages.xml, and specified that

      login-required="true"

      for the protected page.


      To begin with, when I am not logged in, and try to access the URL of the protected page, everything works as expected. i.e. I cannot access the proected page, but am taken instead to the login page. After I login, I am taken back to my originally requested page.


      However, at this point, my problem begins. I control navigation in my application using a pageflow definition, and it seems that although the protected page is displayed correctly after I log in, the page flow is not in sync with which page I am actually viewing. So, any actions that occur on this page, generate an Illegal navigation error.


      Can anyone help me as to what I need to do to get the pageflow in sync with the displayed page, if the navigation from the login page to the protected page occurs automatically as a result of login redirection?


      Thanks for your help,
      Richard.