4 Replies Latest reply on May 29, 2007 7:06 PM by gavin.king

    Login redirection not remember page parameters?

      I am experiencing some problems with login redirection not remembering page parameters.

      I have a main page (main.xhtml) that goes to another page (call it go.xhtml) which requires login. After successful authentication, go.xhtml does not remember the page parameter that was passed in originally from main.xhtml, and as a result nothing is displayed. However, if I login prior to entering go.xhtml, the page parameter is remembered and the output is displayed.

      Here are the relevant bits:

      ## main.xhtml

      <s:link view="/go.xhtml" value="Go">
       <f:param name="hello" value="world"/>
      </s:link>
      


      ## go.page.xml
      <page login-required="true">
       <param name="hello" value="#{bean.value}"/>
      </page>
      


      ## go.xhtml
      <html>
      #{bean.value}
      
      #{facesContext.externalContext.requestParameterMap['hello']}
      </html>
      


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