ADF_Starting系列8_使用EJB/JPA/JSF通过ADF构建Web应用程序之扩展UI Method
来源:互联网 发布:mysql设置root密码 编辑:程序博客网 时间:2024/05/16 07:30
一、摘要
在本教程中,您将使用甲骨文的JDeveloper 11 g版本11.1.2.0.0来构建一个web应用程序。
建立数据模型,您可以使用EJB图,EJB 3.0和Java Persistence API(JPA)。
web客户端使用JavaServer Faces(JSF)。
创建一个主从复合结构主页查询和编辑功能的用户界面。
一个任务流,搜索功能,也作为一个地区添加到页面中。
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 Two JSF Pages
Step 3: Use the Task Flow as aRegion in the mainHR page
Step 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
二、案例1 - Add a New Method to the Entity and Expose it
Step1. 在Employee.java中添加新的方法
Step2. 并重新阐释session facade
Step3. 查看新增的方法产生在Data Control
三、案例2 - Build a Bounded Task Flow with Two JSF Pages
Step1.创建一个ADF Task Flows
Step2. 创建View1,用以查询Region, 创建View2,用以显示结果页面
Step3. 创建view1的页面jsff
Step4. 将View的pageDef.xml拖动进入页面,产生如下结果
Step5. 修改参数和action
Step6. 在查找按钮中新增一个action listener
Step7. 定义action listener参数如下
Step8. 创建显示结果的View2
Step10. 从Data Control中绑定数据进入到View2页面
Step11. 选择需显示的栏位
Step12. 定义传递的参数
四、案例3 -Use the Task Flow as aRegion in the mainHR page
Step1. 在主页面上创建显示View1和View2结果的页面
Step2. 将Task Flow拖动进入页面,显示为Region
五、案例4 - Run the mainHR Page
Step1. 测试结果如下
Step2. 显示结果
Step3. Back之后在源页面中显示查询界面再次
- ADF_Starting系列8_使用EJB/JPA/JSF通过ADF构建Web应用程序之扩展UI Method
- ADF_Starting系列8_使用EJB/JPA/JSF通过ADF构建Web应用程序之扩展UI Method
- ADF_Starting系列9_使用EJB/JPA/JSF通过ADF构建Web应用程序之测试J2EE Container
- EJB/JPA/JSF通过ADF构建Web应用程序之测试J2EE Container
- ADF开发初体验之二:使用EJB、JPA、JSF开发Web应用
- 教程:使用 JPA 构建 Web 应用程序 (JSF)
- 使用 EJB、JPA 和 JavaServer Faces 通过 JDeveloper 11g 构建 Web 应用程序
- 使用JDeveloper 11g 发布Web应用(基于ADF、EJB、JPA、JSF)
- 使用 Ajax、JSF 和 ADF Faces 开发智能 Web UI
- JDeveloper使用EJB,JPA,JavaServer Faces技术开发Web应用程序实例
- javaEE之JPA、EJB、JSF架构工程
- javaEE之JPA、EJB、JSF代码分析
- JSF+EJB+JPA之整体思想
- JPA EJB SEAM JSF
- 宁静致远_ EJB之JPA(EntityManager)
- 使用JSF技术开发Web应用程序
- 使用 JSF 构建数据库驱动的应用程序
- 使用 JSF 构建数据库驱动的应用程序
- Xinyun CV
- httpd: Syntax error on line 140 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache
- Java中的引用
- Smarty----预过滤器,后过滤器,输出滤镜
- 报表补齐数据
- ADF_Starting系列8_使用EJB/JPA/JSF通过ADF构建Web应用程序之扩展UI Method
- Xpdf-Linux安装教程
- linux accept
- C语言程序设计
- 软件版本
- javascript使链接失效
- 工作中常见maven问题
- Spark SQL CLI 运行
- 包含struct结构和enum枚举代码小例