users@javaserverfaces.java.net

Exiting a Flow https://java.net/jira/browse/JAVASERVERFACES-2997

From: Edward Burns <edward.burns_at_oracle.com>
Date: Mon, 26 Aug 2013 09:35:42 -0700

Hello Dev list.

I'm forwarding this content here on behalf of Hantsy Bai.

On 25 August, Hantsy Bai wrote:

HB> Where I can find the example to demo my problem is fixed exactly...

This work log entry details the files in the test.

https://java.net/jira/browse/JAVASERVERFACES-2997?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel#action_17326

This FAQ entry talks about how to get the code.

http://wikis.oracle.com/display/GlassFish/JavaServerFacesRI#JavaServerFacesRI-HowcanIcontribute%3F

HB> I will apply it in my example when 2.3 is released.

This will be in 2.2.2, scheduled for release next week.

HB> I found the example for this issue in 2_2ROLLING branch used a
HB> implicit flow.

HB> In fact, I have more questions about leaving a flow.

HB> 1. how to leave a flow temporarily(the flow is still active in
HB> backgroud) or permanently(the flow is terminated)?

As stated in the issue, the correct way to return from a flow is via a
flow-return node. The correct way to call another flow is via a
flow-call node.

HB> 2. how to join a existed flow...imagine there is a scene, there are
HB> some steps are done(for example 3 steps done in a 4 steps flow) in a
HB> flow, and user leaves the flow to browse some other content, but
HB> when he is back, how to continue his step, and not start a new flow?

If you leave a flow by calling another flow, when you return from that
called flow, the existing flow is active again.

Ed

--