3 Replies Latest reply on Jun 4, 2008 8:41 PM by darthmaul

    Unable To Get To Last Page From Ajax Page In JPDL Pageflow

    darthmaul

      I am moving along reasonably well with my pageflow, but for some reason I am unable to get to the confirm page of my order.


      Here is the call in the facelet called paymentOptions.jspx:


      <input type="button" jsfc="h:commandButton" id="confirmButton"
                action="confirm"
                value="#{orderAction.confirming ? 'Back to Confirmation' : 'Confirm'}"
                style="margin-left:5px;margin-right:5px;"/>
      



      Here is the relevant portion of the pageflow definition:


      <page view-id="/sales/paymentOptions.jspx" name="payment">
            <redirect/>
            <transition name="confirm" to="confirm">
               <action expression="#{orderAction.generateConfirmationNumber}"/>
            </transition>
      </page>
      <page view-id="/sales/confirm.jspx" name="confirm">
            <redirect/>
      .
      .
      .
      </page>
      



      It looks good to me, but for some reason when I press confirmButton in paymentOptions.jspx, I simply come right back to paymentOptions.jspx.


      Incidentally, this is also the only page in the flow that has Ajax rerendering (using RichFaces) going on.  The Ajax in this page isn't working.  Whether this is its own issue or somehow related to the page transition is a question I leave to you.


      Thanks for any insight.

        • 1. Re: Unable To Get To Last Page From Ajax Page In JPDL Pageflow
          thejavafreak

          Has the pageflow started? When you enter paymentOptions.jspx, the pageflow should have started.

          • 2. Re: Unable To Get To Last Page From Ajax Page In JPDL Pageflow
            darthmaul

            Here is how I start the flow:


            <input type="button" jsfc="s:button" styleClass="submitButton" id="orderButton"
                            view="/sales/beginOrder.jspx"
                            value="Place Order" pageflow="orderPageflow" propagation="begin"/>
            



            There are several pages in the flow, before the one acting up, that seem to be working correctly.  Also, begin.orderPageflow appears in the URL once I've hit that button.  Finally, I see all kinds of node statements in the log.  So I imagine the pageflow has started.


            Please let me know what other information you may need.  I appreciate the help.


            Thanks. 

            • 3. Re: Unable To Get To Last Page From Ajax Page In JPDL Pageflow
              darthmaul

              I found that the conversationId actually disappears.  In other words, let's say I am on paymentOptions.jspx.  Or more precisely, here is the end of the URL:



              paymentOptions.seam?cid=2




              When I hit the Confirm button, even with the pageflow and facelet set up as above, I come to here:



              paymentOptions.seam




              with no cid.


              Any explanation why this is would be appreciated.


              Thanks.