jsf 教学_JSF初学者教程

JSF教程面向初学者,讲解如何创建用户界面组件。本文涵盖JSF的基础,如MVC模式,环境设置(JDK、IDE、Tomcat)和Hello World应用程序,包括创建托管Bean及配置部署描述符。
摘要由CSDN通过智能技术生成

jsf 教学

Welcome to JSF Tutorial for Beginners. Java Server Faces (JSF) technology is a front end framework which makes the creation of user interface components easier by reusing the UI components. JSF is designed based on the Model View Controller pattern (MVC) which segregates the presentation, controller and the business logic.

欢迎使用JSF初学者教程。 Java Server Faces (JSF)技术是一个前端框架,通过重用UI组件,可以更轻松地创建用户界面组件。 JSF是基于模型视图控制器模式(MVC)设计的,该模型将表示,控制器和业务逻辑分开。

JSF初学者教程 (JSF Tutorial for Beginners)

In the Model View Controller pattern, model contains the business logic required to accomplish the business scenario, view represents the presentation layer like the JSP or JSF pages and controller represents the process of handling the control to the model/view depending on the requested operation.

在“模型视图控制器”模式中,模型包含完成业务场景所需的业务逻辑,视图表示类似于JSP或JSF页面的表示层,控制器表示根据请求的操作处理模型/视图的控件的过程。

JSF provides the following components to create an user interface:

JSF提供以下组件来创建用户界面:

  • Standard basic input elements like fields, buttons etc. that forms the set of base UI components.

    构成基本UI组件集的标准基本输入元素(例如字段,按钮等)。
  • Rendering ability of JSF depending on the the client specifications

    JSF的渲染能力取决于客户端规范
  • Core library

    核心库
  • Extending available ui components to add more components and use them for accomplishing client requirements.

    扩展可用的ui组件以添加更多组件,并将其用于满足客户端需求。

JSF初学者教程–环境设置 (JSF Tutorial for Beginners – Environment Setup)

Here we will go through all the necessary steps to setup your computer to create first JSF application.

在这里,我们将完成所有必要步骤,以设置您的计算机以创建第一个JSF应用程序。

JDK安装 (JDK installation)

Download the jdk from the following Oracle website

从以下Oracle网站下载jdk

https://www.oracle.com/technetwork/java/javase/downloads/index.html

https://www.oracle.com/technetwork/java/javase/downloads/index.html

Set the environmental variable JAVA_HOME pointing to the bin path of the installed jdk. For example “C:\Program Files\Java\jdk1.7.0_60”. Also add JAVA_HOME\bin to the PATH variable so as to locate the java binaries.

设置环境变量JAVA_HOME指向已安装的jdk的bin路径。 例如“ C:\ Program Files \ Java \ jdk1.7.0_60”。 还要将JAVA_HOME \ bin添加到PATH变量中,以便找到Java二进制文件。

Now verify whether java is successfully installed on the machin

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值