3 Replies Latest reply on May 1, 2008 3:35 AM by enda

    Login redirect and GET

    enda

      Hello,


      is it currently possible when I am redirected to a Login page to authenticate and capturing a view, also to capture a GET parameters? (for bookmarks)


      this is the code in components.xml


       <security:identity  security-rules="#{securityRules}"
                             authenticate-method="#{authenticator.authenticate}"
                             remember-me="true" />
      
          <event type="org.jboss.seam.security.notLoggedIn">
             <action execute="#{redirect.captureCurrentView}"/>
         </event>
         <event type="org.jboss.seam.security.loginSuccessful">
             <action execute="#{redirect.returnToCapturedView}"/>
         </event>



      If it is not currently possible do you think I can request this feature?


      Thank you Tomas

        • 1. Re: Login redirect and GET
          shane.bryzak

          It should already capture page parameters, have you defined them for the page you are requesting?

          • 2. Re: Login redirect and GET
            enda

            I have tried to add page parameter for the page I am requesting and also  for login and still does not work.


            login.page.xml


            <param name="contest"/> 



            contestBookmark.page.xml


            <param name="contest"/>
            <!-- <param name="contest" value="#{manager.contestId}"/> --> 




            and still does not work.


            example of a navigation


            localhost:8080/CM3v2/../contestBookmark.seam?contest=5
            
            =>
            
            http://localhost:8080/CM3v2/login.seam?cid=1
            
            =(login)=>
            
            http://localhost:8080/CM3v2/../contestBookmark.seam?cid=1
            


            if I do the same after I am logged in works well

            • 3. Re: Login redirect and GET
              enda

              Hey, I am sorry.


              You were right. I had 2 definitions. One in pages.xml and the second for the page. So it is as you say.


              Thank you