2 Replies Latest reply on Jan 4, 2008 12:35 PM by Andrew Elegante

    actionMethod param lost on login redirect

    Andrew Elegante Newbie

      Hi,

      I have a page with an s:link in it like so

      <s:link id="newFeeProduct" value="[#{feesNav.createNewFeeProduct}]" view="/fees/feeProduct/wizard/step1.xhtml"
       action="#{feeProductWizard.startNewWizard()}" propogation="begin" />
      


      In my pages.xml I have the following:

      <page view-id="/fees/feeProduct/wizard/step1.xhtml" login-required="true" >
      </page>
      


      In my components.xml I have the following:

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


      It is possible that a user could click the link without having logged in which redirects to the login page. After logging in the redirect link retains the cid but loses the actionMethod param. I've seen posts where people were passing their own params around and lost them but since this is a seam parameter I would expect it to be retained. Is there some way I can get the actionMethod param to be retained?


      seam 2.0.0 GA
      jboss 4.2.2 ga
      facelets

      Thanks,

      Drew