Adf_starting series 7_ Create UI View using EJB/JPA/JSF to build Web applications via ADF

Source: Internet
Author: User

2013-05-01 Created by Baoxinjian

I. Summary

In this tutorial, you will build a Web application using Oracle's JDeveloper-G version 11.1.2.0.0.

To build the data model, you can use the EJB diagram, EJB 3.0, and Java Persistence API (JPA).

The Web client uses JavaServer Faces (JSF).

Create a master-slave composite structure for the Home page query and editing features of the user interface.

A task flow, search function, is also added as a region to the page.

Building a WEB application Using EJB, JPA, and JavaServer Faces

Part 1:building the Data Model with EJB 3.0 Using the EJB diagrammer

Step 1:create a New application and Projects

Step 2:create The Persistence Model

Step 3:create an EJB Diagram and a Session Bean

Step 4:create a facade Bean to Expose for the Client application

Step 5:create ADF Data Controls from EJB Session beansclose

Part 2:building the View projectclose

Step 1:create a master-detail JavaServer Faces Page

Step 2:bind Data Control components to the Page

Step 3:run and Test the Page

Step 4:add Create and Delete functionalities to the Page

Part 3:adding and exposing a New Method to the Uiclose

Step 1:add a New Method to the Entity and Expose it

Step 2:build a bounded Task Flow with JSF Pages

Step 3:use the Task Flow as aregion in the MAINHR pagestep 4:run the MAINHR Page

Part 4:testing the facade Inside and Outside the Java EE Container

Step 1:add a New Method to the Entity and Expose it

Step 2:run the Java Service outside Java EE container

Second, case 1-create a master-detail JavaServer Faces Page

1. Create an ADF Facelets page

2. After adding the component, the final result is as follows

3. Test run, the results are as follows

Iii. Case 2-bind Data Control components to the Page

1. Bind Department data to page


2. Bind the employee master data to the page

3. Bind Employee Detail data to page

4. Bind Employee information to table

Iv. Case 3-run and Test the Page

1. Run test, Master-detail structure

2. Run the test icon

3. After modifying the salary, view the display of the icon

4. The icons are updated as follows

V. case 4-add Create and Delete functionalities to the Page

1. Add Create and Delete buttons

2. Build a persistence layer

3. Add Persistence button

4. Run the test, create the Department

5. After the data is created, persist

6. View data from the database

Thanks and regards

Adf_starting series 7_ Create UI View using EJB/JPA/JSF to build Web applications via ADF

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.