Dynamically adding multiple regions to a page
ADF allows you to add or remove regions to a page at runtime. This feature is useful if you do not know the number of regions that render in the page at design time. For example, consider a page with panel tabbed display, each tab holding a region. An end user can add or remove tabs at runtime. This section discusses a solution for such use cases.
You can use a page definition file's multiTaskFlow
element to reference a list of bounded task flows that are added at runtime. Each region in the UI may hold a reference to a task flow in the list. The following are the implementation details:
Implementing the logic to return a task flow binding attributes list.
The first step is to build a managed bean to return a dynamic task flow list containing
oracle.adf.controller.binding.TaskFlowBindingAttributes
instances. EachTaskFlowBindingAttributes
entry describes a task flow added at runtime. The following is an example forTaskFlowBindingAttributes
:TaskFlowBindingAttributes...