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?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122167#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...