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