ADF_Data Binding系列1_使用Bean Data Control

2015-02-16 Created By BaoXinjian

一、摘要


本文介绍通过JavaBean和ADF Faces开发一个数据显示Application

Step 1: Create a New Application and Project

Step 2: Create a Simple JavaBean Class

Step 3: Create a Service Class

Step 4: Create a Data Control for the Service Class

Step 5: Create a JSF Page

Step 6: Bind an ADF Faces Table Component to the Service Bean

Step 7: Set the Labels

Step 8: Bind to a Parameterized Method and a Parameter

 

1: Create a New Application and Project


Step1. 创建一个Custom Application

Step2.  查看说创建的Application

 

2: Create a Simple JavaBean Class


Step1.  创建一个JavaBean Class

Step2.  新增两个属性name/email,并自动产生他们的get/set方法

Step3.  查看所常见的Contact.java包

Step4.  查看Contace.java包对应的代码

package acme.bean; public class Contact { public Contact() { super(); } private String name; private String email; public void setName(String name) { this.name = name; } public String getName() { return name; } public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } public Contact(String name, String email) { this.name = name; this.email = email; } }

 

3: Create a Service Class


Step1.  创举一个Sevice Java Class

Step2. 定义包名等属性参数

Step3.  查看所创建的AddressBook.java包

你可能感兴趣的:(bean)