users@javaserverfaces.java.net

Re: method call as start node for flow

From: Edward Burns <edward.burns_at_oracle.com>
Date: Mon, 16 Dec 2013 06:45:33 -0800

>>>>> On Thu, 12 Dec 2013 11:38:08 -0800, Edward Burns <edward.burns_at_oracle.com> said:

>>>>> On Tue, 26 Nov 2013 10:15:39 -0800, jason zhang <jasonzhang2002_at_gmail.com> said:
JZ> Hi, All
JZ> I am trying to use a method call as start node for flow. The method call
JZ> will judge the status of a domain object(project) to decide the start page.

JZ> I tried the default start page: FLOW/FLOW.xhtml. It worked. But the method
JZ> call one does not.

JZ> My flow definition looks like this
JZ> <flow-definition id="project">
JZ> <start-node>firstpage</start-node>

JZ> <method-call id="firstpage" >
JZ> <method>#{pflow.firstPage()}</method>
JZ> <default-outcome>delay_event</default-outcome>
JZ> </method-call>

JZ> </flow-definition>


JZ> It gives me the error like this

JZ> - Unable to find matching navigation case with from-view-id
JZ> '/project_setup.xhtml' for action '#{projectSetup.save}' with outcome
JZ> 'firstpage'
JZ> - Unable to find matching navigation case with from-view-id
JZ> '/project_setup.xhtml' for action '#{projectSetup.save}' with outcome
JZ> 'project'

EB> This appears to be a genuine bug. I've filed it and am working on it
EB> presently.

EB> https://java.net/jira/browse/JAVASERVERFACES-3110

This has been fixed. it will be in 2.2.5.

Ed