1 Reply Latest reply on Jan 23, 2008 12:16 PM by pmuir

    How to properly end nested conversation using pageFlow??

    seyan

      I have a problem with ending nested conversation (invoked from conversation with custom/natural conversation Id). Conversations are defined in pages.xml:

       <conversation name="testConversation" parameter-name="operationID"
       parameter-value="#{operation.id}" />
      
       <page view-id="/businessOperation.xhtml"
       conversation="testConversation" no-conversation-view-id="browseBusinessOperations.xhtml">
       <begin-conversation join="true"
       pageflow="businessOperationModify"/>
       </page>
      
       <page view-id="/newBusinessOperation.xhtml" no-conversation-view-id="browseBusinessOperations.xhtml">
       <begin-conversation nested="true" pageflow="businessOperationCreateNewVersion"/>
       </page>
      


      Parent conversation uses following page flow:

      <pageflow-definition xmlns="http://jboss.com/products/seam/pageflow"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
       name="businessOperationModify">
       <start-page name="startPage" view-id="/businessOperation.xhtml">
       <redirect/>
       <transition name="businessOperationEdited" to="enableEdit"/>
       <transition name="browseBusinessOperations" to="browseBO"/>
       <transition name="newBusinessOperation" to="newBO"/>
       </start-page>
      
       <page name="enableEdit" view-id="/businessOperation.xhtml">
       <redirect/>
       </page>
       <page name="newBO" view-id="/newBusinessOperation.xhtml">
       <redirect/>
       </page>
       <page name="browseBO" view-id="/browseBusinessOperations.xhtml">
       <end-conversation />
       <redirect/>
       </page>
       <end-state name="end"/>
      </pageflow-definition>
      


      pageflow for nested conversation
      <pageflow-definition xmlns="http://jboss.com/products/seam/pageflow"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
       name="businessOperationCreateNewVersion">
       <start-page name="startPage" view-id="/newBusinessOperation.xhtml">
       <redirect/>
       <transition name="browseBusinessOperations" to="browseBusinessOperations"/>
       </start-page>
       <page name="browseBusinessOperations" view-id="/browseBusinessOperations.xhtml">
       <end-conversation ></end-conversation>
       <redirect></redirect>
      
       </page>
       <end-state name="end"/>
      </pageflow-definition>
      


      After the transition to page on which nested conversation should end, it still propagates to that page and other pages (i.e. /browseBusinessOperations.xhtml)

      Maybe I'm doing something wrong?