Wildcard Control Flows for Page Navigation

Let's say your application has several pages and you want to set up the ability to navigate from one page to the next.  JDeveloper will help you define ADF Task Flows and will let you "draw" connections from one page to the next.  This automatically sets up the ability for one page to navigate to another page.

I had 5 pages or views and needed to make sure that any page could go to any other page.  Using the task flow tool which was editing my adf-config.xml file I "drew" all my connections resulting in this:

flow1.png

I seem to be building a star topology here.... not pretty, not maintainable if I should later add more pages.  So what to do?  Use Wildcard Controls instead.   By dragging a "Wildcard Control Flow Rule" off the right hand panel and dropping it into my design view, I can now create a "*" entry.  I then draw my control flows from this "*" entry to each of my pages.  Now I can have any page navigate to any other page and greatly simplify my setup.

flow2.png


To navigate between pages, you can now use any of the named paths.  For example, if you have a button on one of your pages, you can set the "Action" value to be "goToPolicyView" and the press of this button will take you to the new target view.


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blog contains technical "how-to's" of using Jdeveloper 11g to build a web based application.

Search

Categories
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