2 Replies Latest reply on Jun 10, 2009 8:11 PM by Andy Gibson

    Ending a conversation and FacesMessages

    Kevin Lam Newbie

      I'm new with Seam and I was hoping I could get a little help.

      I have a three page flow; the first page has some input fields and a button that goes to the second page.  The second page simply reads back the input from the user, and has a 'Confirm' button and a 'Cancel' button.  If 'Confirm' is selected, the user's data is submitted and processed and goes to the third page etc. etc. 

      However, if the 'Cancel' button is clicked, I would like the flow to travel back to the first page and display a message saying, "You've cancelled."  I end the long-running conversation with:
           <end-conversation before-redirect="true" />

      I understand that this will clear out FacesMessages before the redirect will occur, and thus no messages will be displayed... however, I was wondering if there's a workaround that will allow me to do this.

      Any help is appreciated,