This content has been marked as final.
Show 2 replies
-
1. Re: help with ending conversations in a pageflow
eghchang Aug 7, 2007 10:33 AM (in response to eghchang)sorry, i meant to say:
"however, i'm finding that since the schema requires that <end-conversation> element has to come after the redirect, recoverview.xhtml is being loaded with the pageflow's long-running conversation still active. a browser refresh does clear out this conversation state." -
2. Re: help with ending conversations in a pageflow
eghchang Aug 7, 2007 11:41 AM (in response to eghchang)my co-worker suggested a solution that works and gets around the problem of having to add calls to the @End-annotated method on every transition. This solution uses the event node with a type of "node-enter" to invoke the @End-annotated method prior to the page redirect.
<page name="recommendation-complete" view-id="/recommendations/complete.xhtml"> <redirect/> <transition name="overview" to="rec-overview"/> </page> <page name="rec-overview" view-id="/recommendations/recoverview.xhtml"> <redirect/> <event type="node-enter"> <!-- method below is annotated @End(beforeRedirect=true)--> <action expression="#{myBean.endConversation}"/> </transition> </event> </page>