- JBoss Tools 3 Developers Guide
- Anghel Leonard
- 393字
- 2021-05-21 20:15:38
Overview of JSF
Java Server Faces (JSF) is a popular framework used to develop User Interfaces (UI) for server-based applications (it is also known as JSR 127 and is a part of J2EE 1.5). It contains a set of UI components totally managed through JSF support, like handling events, validation, navigation rules, internationalization, accessibility, customizability, and so on. In addition, it contains a tag library for expressing UI components within a JSP page. Among JSF features, we mention the ones that JSF provides:
- A set of base UI components
- Extension of the base UI components to create additional UI component libraries
- Custom UI components
- Reusable UI components
- Read/write application date to and from UI components
- Managing UI state across server requests
- Wiring client-generated events to server-side application code
- Multiple rendering capabilities that enable JSF UI components to render themselves differently depending on the client type
- JSF is tool friendly
- JSF is implementation agnostic
- Abstract away from HTTP, HTML, and JSP
Speaking of JSF life cycle, you should know that every JSF request that renders a JSP involves a JSF component tree, also called a view. Each request is made up of phases. By standard, we have the following phases (shown in the following figure):
- The restore view is built
- Request values are applied
- Validations are processed
- Model values are updated
- The applications is invoked
- A response is rendered
- During the above phases, the events are notified to event listeners
We end this overview with a few bullets regarding JSF UI components:
- A UI component can be anything from a simple to a complex user interface (for example, from a simple text field to an entire page)
- A UI component can be associated to model data objects through value binding
- A UI component can use helper objects, like converters and validators
- A UI component can be rendered in different ways, based on invocation
- A UI component can be invoked directly or from JSP pages using JSF tag libraries
Note that these are the theoretical aspects of the JSF framework meant to get you familiar with the model and components of the JSF engine. For practical examples and a complete tutorial, you can access resources like http://java.sun.com/javaee/javaserverfaces/reference/docs/.
If you have never worked with JSF or have less experience in doing so, then it is absolutely mandatory to access a more detailed documentation before going further.
- 中文版SketchUp 2022完全實戰(zhàn)技術(shù)手冊
- Photoshop CS6平面設(shè)計應(yīng)用教程(第4版)
- Microsoft SharePoint 2010 Power User Cookbook: SharePoint Applied
- Photoshop CC從入門到精通(全彩超值版)
- Drupal: Creating Blogs, Forums, Portals, and Community Websites
- Elasticsearch實戰(zhàn)與原理解析
- 深入理解OpenCV:實用計算機視覺項目解析(原書第3版)
- 邊做邊學(xué):平面設(shè)計(Photoshop CS6 +CorelDRAW X6)
- Puppet權(quán)威指南
- 音樂制作7天速成:Cubase編曲教程
- 卷珠簾:Photoshop古風(fēng)插畫技法完全教程
- 攝影師的后期課:人像調(diào)色篇
- SilverStripe 2.4 Module Extension, Themes, and Widgets: Beginner's Guide
- AutoCAD 2019中文版完全自學(xué)手冊(標(biāo)準(zhǔn)版)
- 和秋葉一起學(xué):秒懂Photoshop后期修圖