Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the entry-level knowledge points of JSF

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "what are the basic knowledge points of JSF". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what are the basic knowledge points of JSF"?

JSF is the standard of java web and may replace the jsp era. JSF literally translates to the user interface framework of Java Web applications.

JSF provides a set of API and tag libraries for creating page forms and complex interface elements

JSF makes it easier to write code for form submissions that can respond to different button submissions, change certain values, or the choices of certain users, and so on.

◆ Managed beans: makes it easier for JSF to handle request parameters

◆ EL (Expression Language): JSF has a set of expression languages for accessing java bean attributes, collection elements, and so on.

◆ provides form field type conversion and validation

◆-specific properties

◆ UI component model

JSF provides a rich and flexible set of component models, including:

◆ A set of UIComponent classes that define the state and behavior of UI components.

◆ rendering model: defines how components are rendered in different ways

◆ events and listener models are used to handle component events.

◆ transformation model: data conversion

◆ Verification Model: how to verify the validity of data

Getting started with JSF: data Transformation Model

When a component is bound to an object, there are two views for the component data:

One is the model view: from this point of view, the data is represented as the type of java object, such as int, long,Date, and so on.

One is the presentation view: from this point of view, the data appears in a form that can be read or modified by people. For example, a Date type may be represented as a string in yyyy-MM-dd format, or as three strings representing the year, month, and day.

You can define your own converter to convert data.

Getting started with JSF: event and listener Model

Events: value change events, action events, data model events.

Value change: for example, the value of the input box is changed, checkbox is selected, etc.

Action event: click a button or hyperlink

Data model event: this event is triggered when a row of the UIData component is selected.

Getting started with JSF: navigation Model

Navigation-rule, which can contain a from-view-id and multiple navigation-case

In each navigation-case, there are mainly redirected pages.

From-view-id: current page

From-action: from which action method

From-outcome: from which logical name

To-view-id: which page to go to

Navigation solves the problem of where to go from. In a word: from the from-view-id page, when the from-action method is called and its return value is from-outcome, go to the to-view-id page.

At this point, I believe you have a deeper understanding of "what are the basic knowledge points of JSF?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report