[jboss-user] [JBoss Seam] - Re: one method ending conversation or not

denis-karpov do-not-reply at jboss.com
Thu Oct 12 11:49:11 EDT 2006


There are two approaches.

First, if you use Page Flows, then you can make decision node where you decide what is next.

.....
  | <page name="yourPage" view-id="/qqq/eee.xhtml">
  | 	<redirect/>
  | 	<transition name="aaaa" to="check">
  | 		<action expression="#{yourController.doSomething}"/>
  | 	</transition>
  | </page>
  | <decision name="check" expression="#{yourController.conditionOfEnd}">
  | 	<transition name="true" to="end">
  | 		<action expression="#{yourController.done}"/>
  | 	</transition>
  | 	<transition name="false" to="yourPage"/>
  | </decision>
  | .....
Second, you can end your conversation explicitly from the code.

Conversation.instance().end();


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977924#3977924

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977924



More information about the jboss-user mailing list