[jboss-user] [JBoss Seam] - Re: help with ending conversations in a pageflow
eghchang
do-not-reply at jboss.com
Tue Aug 7 11:41:30 EDT 2007
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>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071675#4071675
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071675
More information about the jboss-user
mailing list