-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleFlow.java
More file actions
31 lines (23 loc) · 808 Bytes
/
ExampleFlow.java
File metadata and controls
31 lines (23 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package org.javaee7.chapter02.jsf;
import javax.faces.context.FacesContext;
import javax.faces.flow.Flow;
//import javax.faces.flow.FlowDefinition;
import javax.faces.flow.builder.FlowBuilder;
import javax.faces.flow.builder.FlowDefinition;
import javax.inject.Named;
/**
*
* @author Juneau
@Named("exampleFlow2")
@FlowDefinition
public class ExampleFlow {
private static final long serialVersionUID = -7623501087369765218L;
public Flow defineFlow(FacesContext context, FlowBuilder builder){
String flowId = "example2";
builder.id(flowId);
builder.viewNode(flowId, "/" + flowId + ".xhtml").markAsStartNode();
builder.returnNode("returnFromFlow").fromOutcome("#{flowBean.returnValue}");
return builder.getFlow();
}
}
*/