Render an unknown number of task flows in page or dashboard regions.
Oracle Application Development Framework (Oracle ADF) regions display the contents of bounded task flows in designated areas on a page. Each region uses a special binding configuration—the task flow binding—in the Executables section of the parent page’s PageDef.xml file to populate the region content with data from the Oracle ADF binding layer.
In use cases such as analytic dashboards, the contents of an unknown number of task flows must be displayed as regions at runtime. However, Oracle ADF regions cannot be created at runtime. Multi-task-flow binding in Oracle JDeveloper 11g Release 2 and Oracle JDeveloper 12c addresses this limitation. Using a hands-on exercise, this article shows developers how to use multi-task-flow binding in Oracle ADF applications. Parts of the sample application have been prebuilt to give you a head start. In addition to performing the hands-on steps, you can learn more by examining the source files.
To begin, download the sample application and unzip the o44adf-2197040.zip file to a local folder on your computer. Do not use spaces in the folder name. Ensure that you’re using the studio edition of Oracle JDeveloper 12c (188.8.131.52.0) or later, available as a free download on Oracle Technology Network.
Static, Dynamic, Multiple
The multi-task-flow binding feature is a combination of the static and dynamic task-flow-binding types used in Oracle JDeveloper to associate region content with the Oracle ADF binding layer and lifecycle.
A static region uses a dedicated task flow binding added to the PageDef.xml file of the parent page to associate the region content with a bounded task flow. The task flow binding contains a static reference to the bounded task flow to be exposed in the region.
Dynamic regions also use a dedicated task flow binding, which uses a property reference to a managed bean in view scope to provide the task flow reference information. The managed bean is accessible from Java code and through expression language (EL). The task flow reference returned by the managed bean property can be changed at runtime for the region to display the contents of different task flows sequentially.
In multi-task-flow binding, the multi-TaskFlow binding element provides the region component model for multiple Oracle ADF region instances that are created at runtime with the af:forEach loop tag of the Oracle ADF Faces feature of Oracle ADF. Each region obtains its bounded task flow configuration reference from a managed bean. As with dynamic regions, the content of the managed bean can be changed at runtime, thereby enabling the display at runtime of an unknown-at-design-time number of task flows in regions. The region binding is appropriate for uses such as dashboards that display varying numbers of bounded task flows on a page. Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.