2 Replies Latest reply on Jul 20, 2010 7:43 AM by Damon Chong

    Ending a conversation & starting a natural conversation..

    Damon Chong Newbie

      Hi,


      I am trying to end the currect conversation and starting/joining a natural conversation with the below but when I checked the seam debug page, the current conversation id did not go away. Not a show stopper, just wondering is this a bug? Thank you very much.


      <s:button id="newBatchButton" image="/MerlionApps/images/icons/add.png" 
                    alt="Add New Compound Batch" view="/npc/manageCompounds/compounds/addcompoundbatch.xhtml" 
                    propagation="end" conversationName="addCompoundBatch">
                    <f:param name="compoundId" value="#{compoundRegister.compoundId}"/>
      </s:button>
      



        • 1. Re: Ending a conversation & starting a natural conversation..
          bb bb Master
          Hy!
          The <s:link>, <s:button> propagation="end" property does not end the actual conversation, just adds an url parameter. If you want to end the conversation you should use the action method+pages.xml combination with <end-conversation> tag.
          • 2. Re: Ending a conversation & starting a natural conversation..
            Damon Chong Newbie
            Thank you for the reply. I did originally tried that in the pages.xml file. I used

            `
            <end-conversation before-redirect="true" />
            `

            and that works but if I combine that with natural conversation i.e. added conversationName attribute in <s:button>. The end conversation is somehow ignored. So here's my question, it's a bit long.

            Is it possible to combine a <s:button> or <s:link> that has a conversationName and an action that causes a re-direct in the pages.xml file which has a <end-conversation before-redirect="true"> tag to end the current conversation before beginning or joining a natural conversation?

            Thanks and regards!