ADF_Starting系列7_使用EJB/JPA/JSF通过ADF构建Web应用程序之创建UI View
2013-05-01 Created By BaoXinjian
在本教程中,您将使用甲骨文的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 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
1. 创建ADF Facelets页面
2. 添加组件后,最终显示效果如下
3. 测试运行,结果如下
1. 绑定Department数据到页面
2. 绑定Employee Master数据到页面
3. 绑定Employee Detail数据到页面
4. 绑定Employee信息到表
案例3 - Run and Test the Page
1. 运行测试,Master-Detail结构
2. 运行测试图标
3. 修改Salary后,查看图标的显示
4. 图标更新如下
案例4 - Add Create and Delete Functionalities to the Page
1. 新增Create和Delete按钮
2. 建立持久化层
3. 添加持久化按钮
4. 运行测试,Create的department
5. 创建数据后,进行持久化
6. 查看数据库的资料
Thanks and Regards
ADF_Starting系列7_使用EJB/JPA/JSF通过ADF构建Web应用程序之创建UI View的更多相关文章
- ADF_Starting系列8_使用EJB/JPA/JSF通过ADF构建Web应用程序之扩展UI Method
2013-05-01 Created By BaoXinjian
- ADF_Starting系列9_使用EJB/JPA/JSF通过ADF构建Web应用程序之测试J2EE Container
2013-05-01 Created By BaoXinjian
- IDEA 2017.3 新版本中创建 JSF Web 应用程序缺少 web.xml 的解决办法
IDEA 2017.3 新版本中默认创建一个 Web 应用程序很可能不会自动创建 web.xml 文件.虽然说从 JavaEE 6.0 开始 Servlet 3.0 规范中就新增了一些注解可以免去传统 ...
- JSF+EJB+JPA总体思路
前言: JSF+EJB+JPA 其实我并没有想象中的难,只是想做好,建立在正确的地方应用,真正的困难. 良好的技术,在错误的地方做应用,这是唯一能够被垃圾. 用. 重量级企业应用能够使用这个主要的3层 ...
- Problems found loading plugins: Plugin "GlassFish Integration" was not loaded: required plugin "Java EE: EJB, JPA, Servlets" is disabled.
idea启动报错:并且无法部署web项目 Problems found loading plugins: Plugin "GlassFish Integration" was no ...
- SpringBoot系列之Spring Data Jpa集成教程
SpringBoot系列之Spring Data Jpa集成教程 Spring Data Jpa是属于Spring Data的一个子项目,Spring data项目是一款集成了很多数据操作的项目,其下 ...
- IDEA报错Plugin "XXX" was not loaded: required plugin "Java EE: EJB, JPA, Servlets" is disabled.
Java项目转Web项目 把java项目转成web项目时,发现Facets点击+号没有出现web选项. 经查询发现是插件没有正常加载导致的. 解决方案 1.没找到其他原因,重启即可. 2.我的是插件没 ...
- Spring全家桶系列–SpringBoot之入门JPA
//本文作者:cuifuan 什么是JPA? 一种规范,并非ORM框架,也就是ORM上统一的规范 用了之后可以做什么,为什么要用? 代码解释: 实体类 package com.example.spri ...
- [转载][翻译] 利用JSF、SpringFramework和Hibernate构建Web应用的实例讲述
[原作者] Derek Yang Shen[原文链接] http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html[源码链接] htt ...
随机推荐
- Node.js 快速了解
最近在学习目前非常火的Node.js 写了一份精简易懂的笔记用于快速了解Node.js技术.如有不对的地方还请多多指教. 注:此篇博文不断更新中. 第一部分:快速了解 1.Node.js是什么? No ...
- SSH框架构建微信公众帐号服务器小技巧
SSH框架构建微信公众帐号服务器小技巧 熟悉struts2和servlet的同学应该清楚,struts2的方法多样性弥补了servlet单一的doGet 和doPost方法.如果自己的公众账号服务器是 ...
- MagicalRecord的使用(第三方库实现的数据库)
MagicalRecord:http://cocoadocs.org/docsets/MagicalRecord/2.1/ 安装: 1.新建一个工程,注意不要勾选 Core Data. 2.利用Coc ...
- Apache +Tomcat的负载均衡与集群配置
实验拓扑图: 一.搭配环境 (1).Tomcat的安装和配置 Tomcat_a的ip:192.168.55.229 Tomcat_b的ip:192.168.55.231 Tomcat的需要安装jdk和 ...
- 2014年4月底至5月初51Aspx源码发布详情
精灵豆会员管理系统源码 2014-4-21 [VS2010]功能介绍:精灵豆会员管理系统业务管理平台采用微软选进的C#语言开发,采用大型数据库,具有比较高的执行效率和高安全性.系统分为消费管理,会员 ...
- 使用Ueditor的心得。
现在有一个项目,需要富文本插件,以前用的都是国外的CKEditor,后来百度推出了自己的富文本编辑插件Ueditor,试用了一下,感觉不错. 遂决定在新项目中使用该插件. 在使用Ueditor上传图片 ...
- Android ContentResolve使用
在Android中使用ContentResolve访问其他程序的数据: http://developer.android.com/reference/android/content/ContentPr ...
- [SQL Basics] Indexes
An index is used to speed up searching in the database. By default, when you create this table, your ...
- Counting Sequences_线段树***
Description For a set of sequences of integers{a1,a2,a3,...an}, we define a sequence{ai1,ai2,ai3...a ...
- PHP 调试
$log_path = '/data0/www/html/hejungw/static/log/uploadlog/'; $log = $log_path . date('Y-m-d') . '.lo ...