Saturday, August 17, 2013

TaskFlow : Method call

Create a bounded task flow
Details of method call below

Method is #{requestScope.TestBean.test}. Also note the default outcome toTF2. Create the managed bean as below

public class TestBean {
    public TestBean() {
    }

    public void test() {
        // Add event code here...
        System.out.println("Test ..................");
    }
}

The diagram represents boundedTF2 is below
Create a testMain.jspx and drag and drop the boundedTF1 as a region.
Link view1btf1.jsff to view1btf2.jsff using a command button where the action is the control flow toV2. Create a button in view2btf1.jsff which action is toM1.Method will execute and the control will go the boundedTF2 from the default outcome of method call.

1 comment:

  1. Hi. Picture 2 refers to the bean in the request scope, while picture 3 refers to the page flow scope. Could you elaborate?

    ReplyDelete