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 is the new generation of Java Web development framework JSF framework like?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail about the new generation of Java Web development framework JSF framework is how, the content of the article is of high quality, so the editor to share with you to do a reference, I hope you have a certain understanding of the relevant knowledge after reading this article.

Java Web programming began with Servlet, and after experiencing JSP and Struts, it is moving towards JSF. With a number of revolutionary and innovative technologies, JSF is entering a new era of truly object-oriented Java Web programming based on component models and event-driven mechanisms.

By official definition, the JSF framework is the Java Web presentation layer framework. To put it popularly:

1.JSF is another Java Web application programming technology after Servlet, JSP and Struts.

2.JSF is a new way to write web pages. Complete Java Web applications include web pages, business logic and databases, the latter two of which have mature solutions, such as EJB and JPA, but the preparation of web pages is still in a very primitive stage and needs to deal with many low-level details. The emergence of JSF is to solve the problem of web page writing. It can be said that JSF, together with EJB and JPA, has constructed a three-tier architecture of Java Web applications.

The biggest advantage, in a word, greatly simplifies the compilation of web pages. Before JSF, we wrote web pages to deal with tag, Http requests, http responses, etc., while JSF allows us to regard web pages as common windows in Java desktop applications and write Java Web applications in a similar way to writing desktop applications. In JSF, there is no tag, no http request, and no http response, replaced by concepts familiar to the average Java programmer, such as UI components, events, and event handling routines.

Of course, when I say the JSF framework in this way, I don't mean that JSF does not need tag and http request responses. Within the JSF framework, it is tag and http request responses that really support the operation of JSF, but JSF shields the details and allows programmers to focus on business logic code.

Compared with ASP.NET, I think JSF has two advantages:

1) some advantages are inherent in JSF, such as platform independence, which is inherited from the Java language. The benefits of platform independence are clear to everyone, so I won't talk nonsense.

2) JSF is a specification, not a concrete product, which is the wisdom of Sun and the kindness of Sun. In fact, many of Java's technologies are in the form of specifications, which is very different from Microsoft's introduction of new technologies in the form of specific products. The advantage of the specification is that it allows different manufacturers to compete on specific products for the benefit of users. For example, JSF, Sun's own reference implementation is now rarely used, but some open source JSF implementations such as Apache's MyFaces are popular. By encouraging competition and freeing up more efforts to improve the specification, Sun can kill two birds with one stone.

3) from a technical point of view, JSF is not only platform-independent, but also independent of the markup language used to describe pages. In other words, on PC, we now usually use HTML as the markup language. In fact, on other types of terminals, we can still do it if the markup language that describes the page is not HTML,JSF. Of course, this advantage doesn't seem to make much sense to ordinary programmers, but if you take a long-term view, the irrelevance of this markup language is a concrete manifestation of the forward-looking JSF technology, which makes JSF last longer.

The most important mission of 3.Java EE 5 is to simplify Java development. To this end, Sun has successively used three tricks: one is to launch JSF, the second is to launch EJB3, and the third is to launch JPA. Discerning people know at a glance that these three technologies cover the presentation layer, business layer and data layer of the three-tier architecture respectively. Although they cannot dominate the world, the purpose of establishing a complete system at the normative level is very clear. Specification is the commanding height of technology, as long as Sun does not fail, JSF will have enough hard background to support its development.

On the new generation of Java Web development framework JSF framework is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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