Transfer an event between Region

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.