0 Replies Latest reply on Jul 1, 2010 4:38 PM by Mita Bhushan

    redirect.returnToCapturedView does not work in JBossAS 5.1

    Mita Bhushan Newbie

      I upgraded my application form Jboss 4.2 to Jboss 5.1


      redirect.returnToCapturedView works in 4.2 but not in 5.1


      my component.xml has


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



      page.xml


      <page view-id="/sales.xhtml" login-required="true" action="#{redirect.captureCurrentView}">
               <navigation>
                  <rule if-outcome="viewQuote">
                      <redirect view-id="/Inquire.xhtml"/>
                  </rule>
              </navigation>
          </page>
      



      Inquire.xhtml has a action button when clicked it still stays on the same page
      when deloyed in 5.1 and works perfectly fine when deployed in 4.2


      <div class="actionButtons">      
               <s:button action="#{redirect.returnToCapturedView}"
                          id="done"
                       value="Close"/>
      
          </div>