Overview
This article describes how to transfer events between different region in the ADF application.
The following uses regiona and regionb as examples to describe how to transfer events between region.
Requirement: When you click any button in the navigation bar in regiona, the same event is triggered in regionb.
Implementation
1. Create an ADF application, and create a BC (EO/Vo/AM) based on the employees and parameters tables as needed ).
2. Create two bounded-task-flow with in the viewcontroller Project
Fragments. The names are regiona-task-flow and regionb-task-flow.
3. From "component
In pallete, drag "View" to the two task-flows that have just been created. The names are regiona and regionb respectively. Double-click to generate two tasks according to the wizard. jsff fragments. The generated names should be regiona. jsff and regionb. jsff.
4. Open regiona. jsff and
In controls, drag employeesview1 to the fragment, generate a form as prompted, and carry the navigation button.
5. Similarly, open regionb. jsff and
In controls, drag departmentsview1 to the fragment and generate a form with a navigation button as prompted.
6. Create a New. jspx page. Name it main. jspx here.
Splitter layout to split the page into the left and right parts. Drag regiona-task-flow and regionb-task-flow to the two sections respectively. The generated page is as follows:
7. Double-click the pagedef file of regiona. jsff, add an event for its navigation button, and view the "structure" Panel. Take the "first" button as an example: Right-click the "first" button and choose "insert ".
Select events in "inside first", right-click the events, and click "insert inside"
Select event in events and name it firstevent. Add the same operation for other buttons. Add the same operation to the navigation button in pagedef of regionb. jsff and save the operation.
8. Open the main. jspx page, right-click pagedef on the "structure" panel, and select "Edit event ".
Map, set the mapping relationship of the event, and set all the events.
9. Save the preceding settings and run the main. jspx page.
Final running result:
This article is transferred from Oracle Seeker: http://oracleseeker.com/2009/09/08/adf_pas_event_regions/