Router in taskflow

A simple one of usecase to demonstrate router usage in taskflows with only jspx pages ( no frags ) main page with 2 commandLinks employees and departments. upon clicking employees link navigates to employees page and similarly clicking department link navigates to department page, all pages are in droped in there respective taskflows. emp.jspx dep.jspx emp_TF.xml dep_TF.xml mn_TF.xml ( main taskflow calling emp and dep TF's through router ) adf-config.xml ( main page navigates to mn_TF.xml ). emp and dep links has common action method from backing bean and this action method returns String outcome property which is set in actionListner method applied on these 2 commandLinks. actionListener ------------------ public void empdepActionListener(ActionEvent actionEvent) { // Add event code here... if(actionEvent.getComponent().getId().equalsIgnoreCase("emp")) { this.setOutCome("employees"); } if(actionEvent.getComponent().getId().equalsIgnoreCase("dep")) { this.setOutCome("departments"); } } action ------- public String empdepAction() { return this.outCome; } Here is the screen shots.. router1.PNG
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
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
   
       
Today