2015-02-17 Created By BaoXinjian

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean一、摘要


本文介绍如何再JSF Application中创建和使用Bean

Step 1: Create a New Application and Project

Step 2: Create a JSF Page

Step 3: Create a Java Class

Step 4: Register the Class as a Managed Bean

Step 5: Design the UI

Step 6: Bind the UI to the Managed Bean

Step 7: Finish the Code and Run the JSF Page

 

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean1: Create a New Application and Project


Step1.  创建一个Custom Application

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

Step2.  查看所创建的Application

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

 

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean2: Create a JSF Page


Step1.  创建测试页面

 ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

Step2.  定义页面属性参数

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

 

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean3: Create a Java Class


Step1.  创建一个Java Class

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

Step2.定义Java Class的属性参数

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

Step3.  定义两个新参数username / email, 并产生get - set方法

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

Step4.  产生方法如下

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

 

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean4: Register the Class as a Managed Bean


Step1. 创建Managed Bean

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

Step2.  定义Managed Bean的属性参数

ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-08-07
  • 2021-07-17
猜你喜欢
  • 2021-11-30
  • 2021-05-26
  • 2021-12-14
  • 2022-12-23
  • 2021-12-16
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案