The advantages of JSF and its future development trend

Source: Internet
Author: User
Tags java web
Dialogue Honggang: JSF's advantages and future trends 2007.08.06 Shangong post a total review (1) Article comments [collection to my web pick] JSF, some people are unfamiliar to him, some people look forward to it, some enthusiasts even predict the future of the Java web-led, in 2006, Sun brought JSF from behind the scenes to the foreground, then the fate of JSF. Reporter: We have also done a lot of reports on JSF recently, some people call JSF a kind of

JSF, some people are unfamiliar to him, some people look forward to it, some enthusiasts even predict the future of the Java web-led, in 2006, Sun brought JSF from behind the scenes to the foreground, then the fate of JSF.  Really be the Terminator of open source framework as people say? Open source framework of the wind smoke, let us see the Java Web World Fierce competition, the advent of the framework of the era has made developers feel numb and tired, people in the framework of the ocean through some tired, do not know which framework is the only application development of the only choice, People who have experienced Java development have to have a good integration of. NET componentsTools, rapid development efficiency to the envy of the screen, so many developers have proposed why Java can not develop and net with the same functional products, to change the Java Web World Chaos pattern. So as a member of the JCP organization, Kingdee middleware treats JSF how to think about it. This reporter exclusive interview with the domestic Java industry has a wide reputation of the Kingdee chief scientist Mr. Honggang, asked him to talk about the future development of JSF. Reporter: We have also done a lot of reports on JSF recently, some people call JSF is an outdated technology, others called JSF is the eight or nine o'clock in the morning sun, I would like to ask you how the total you think of the JSF technology and its future prospects. Honggang: JSF This technology is not outdated, Sun has recently put JSF na Java EE5.0 specification, just never used up, developers to his view of these is also normal, if from the framework of the point of view that he is an excellent development framework, the main lack of development tools, if the integration with the relevant development tools should be more vitality, its prospects are very broad.     Reporter: Just now yuan always talked about development tools, JSF is a relying on the development tool is a strong technology, do not know whether Kingdee also launched its own development tools. Honggang: Indeed, the development of toolsSuccessTo illustrate the success of JSF, with the phrase "JSF is designed to tooled" in other words, the JSF specification emphasizes reliance on development tools from the beginning of design, and our JSF development tools are now gradually enriching, including Orcale JDeveloper, Sun Java Statio Creator and so on, Kingdee also offers an integrated development environment based on Eclipse: Apusic Stutio, which provides good support for JSF development, including: syntax highlighting, code assistance, breakpoint mode, visual design, and so on. Journalist: What is the difference between Apusic stutio development tools and other JSF development tools? Honggang: A good development tool should be from the components and layout of these aspects, from ease of use, simplification efforts, Microsoft's development tools are very successful, Kingdee's development tool is also to see Microsoft's success, ready to learn from Microsoft's development tool model, JSF can be successful, JSF has a lot in common with. NET, and Apusic Studio is designed specifically for JSF. Journalist: Now that there are many open source frameworks, what are the advantages of JSF compared to many open source frameworks? Honggang: Today's Open source framework is based on the Java EE itself, based on the establishment of the http,html underlying protocol, JSF is actually irrelevant to the underlying protocol, it is a high-level page expression, it actually generates not necessarily HTML, can also generate WML, If the markup language of HTML is replaced by a new description language, the JSF technology itself will not be eliminated. Reporter: The industry said that Ajax and JSF integration is a perfect framework combination, I do not know how yuan always think of this statement. Honggang: At present Jsf+ajax this kind of mentality, many companies have, including our Kingdee self, Ajax is a kind of client technology, JSF isServer-SideTechnology, and JSF has many flaws in the implementation mechanism, Ajax in the client's advantage is just the disadvantage of JSF, so that the two form a complementary relationship between each other to improve the performance of JSF, while Apusic JSF technology also component support for Ajax, simplifying the development of Ajax, Achieve a perfect blend of JSF and Ajax.JSF Lift your veil.Why JSF is so much pro-Lai, Ibm,orcale, including the domestic leading middleware manufacturer Kingdee also cast attention to the eye. Then it has what unique advantages to attract a lot of businesses to throw arms to embrace it. Here we will uncover the mystery of JSF. JSF English full name JavaServer Faces (JSF) is a new standard Java framework for building WEB applications. It provides a component-centric approach to developing a Java Web user interface that simplifies development and is a carefully crafted technology by sun.JSF one of the advantages: UI Components ( ui-component )The UI component (Ui-component) has always been a patent for desktop programs, although HTML defines basic UI tags, but to make these UI tags like UI componentswork, it also requires a lot of code snippets to work with data and its representations, and it's tedious to organize these snippets of code effectively to make them coherent. JSF's UI components are truly UI components that greatly simplifyProgrammerWork, such as placing a text input box on the page, which immediately features data filling, interface updates, event listening, action triggering, validation checking, and type conversion. More importantly, the programmer simply writes the core business code based on the business logic, and JSF guarantees that the code is executed at the right time, regardless of how the code fits into the code.JSF The second advantage: event-driven modeEvents are an important part of object-oriented methods, in which objects communicate and communicate with each other so that one or more objects can respond to the behavior of another object and work together to complete a business logic. In general, when writing web programs, programmers write code for the communication design mechanism between objects. Although the content of communication is the business logic, the mechanism of communication is obviously not much related to the business, so the programmer is wasting time on functions outside the business logic. JSF has changed this situation. JSF's event and interception patterns are similar to familiar JavaBean event patterns, and Java based programmers do not need to learn anything new. JSF UI components can generate events, for example, when the contents of the previous text input box on a page are modified, a value change event is issued. Another object that is interested in value change events simply registers as a listener for the object and writes a processing routine that commands JSF to invoke the processing routine automatically when the event occurs. JSF did all that was left to the programmer, and only the business logic code was written.JSF Three advantages: direct mapping of user interface to business logicFor example, form submission is the most common task of web programming and one of the most complex tasks. When the user clicks the "OK" button on the Web page, the browser generates an HTTP request, sends it to a servlet on the server side, and executes the service method of the servlet. In the service method, HTTP requests need to undergo decoding, type conversion, validation, state preservation, data Update and so on, dealing with all the details of these links, the programmer is a heavy burden. In JSF, a large part of these tasks are assumed by the framework, which, in the programmer's view, is transparent, and the HTTP requests from the user interface can be mapped directly to an event-handling routine at the back end, and JSF plays a role in the process.JSF Advantage Four: The division of labor between programmers and web designersIn JSP, the work of programmers and web designers is sometimes intertwined and indistinguishable. This is because JSP pages are mixed with some JSP tags that web designers are unfamiliar with, and even obscure Java code. It is unrealistic to ask web designers to understand these tags and codes, and it is not in line with the principle of division of service. In JSF, the framework provides a standard set of UI components for Web page designers, supported by tools that can be simply added to a Web page by dragging and dropping, and then set some display properties to meet visual requirements. Web designers do not need to know the complex code behind the UI component, which is a programmer's business, and programmers do not have to deal with any visual-related details, and what the programmer does is to bind the properties or methods of the class to the UI component. While programmers and web designers need to modify the same file, they do their part, do their job, and do not interfere. The clear division of work between programmers and web designers is a big step in usability for JSF.

JSF Advantage Five: Multi-stage division of request Processing LifecycleAlthough they are all based on the servlet, the JSF lifecycle is much more complex than the JSP. The lifecycle of a JSP is very simple, and when the page is executed, the HTML tag is immediately generated and the lifecycle ends. While a complete JSF request-processing lifecycle is carefully planned for 6 phases, a typical JSF request needs to go through all phases, and some special requests can skip some stages. Phase of the subdivision, obviously introduced more processing, but the JSF framework will manage all this, so the programmer to gain more control capacity, while the workload does not increase.JSF The advantage of the six: the survival of the accompanying toolsJSF has brought great changes in web programming, the intensity of which is beyond the expectations of many tool makers, so that the tools available for JSF are scarce. JSF, which lacks tool support, can be a respectful one, so JSF is at the beginning of the design for the tool vendor. In one of the few JSF tools, Sun's Java Studio Creator is an excellent development environment Borland JBuilder in JSF1.1 was once a very useful development tool, but now the support of JSF1.2 did not keep up; there are a lot of JSF plug-ins under Eclipse, but there is a charge for real support for WYSIWYG JSF plug-ins, such as Bea's workshop For JSF, Exadel JSF Studio, and so on; Oracle and IBM also have JSF development tools. With the advent of tools, it will be increasingly convenient and fast to develop web programs with JSF.JSF Advantage Seven: Comprehensive user-defined supportAs mentioned earlier, JSF will greatly simplify the development of web programs, and as a relatively complex framework, how does JSF do this? The original JSF provides programmers with many default components and classes, and typically these default components and classes of JSF are sufficient to meet the needs of web development. However, given that, in some applications, the default behavior of the framework may not meet the requirements of the business, JSF specifically allows programmers to write their own components and classes to meet the specific needs of their customers. For example, programmers can write their own UI components, and can even create their own El interpreter to support non-standard El expression languages.JSF advantage of the eight: Web one of the official standards of developmentThe 1.0 version of JSF was released in February 2004, when it was launched as a stand-alone web technology. After the 1.1 edition to the current 1.2 edition, and just over two years, JSF finally became part of Java EE 5 in 2006 and rose to one of the official standards of web development. The most important mission of Java EE 5 is to simplify Java development, and JSF has undoubtedly made a significant contribution to this mission. Today, with the proliferation of web frameworks and even some flooding, sun is using JSF to establish standards that are beneficial to Java development. Sun's leadership in the Java world is not to be shaken, and for Java programmers, always following the footsteps of industry leaders may be the best way to avoid technology obsolescence. 1JSF can unify Web Development mode. In the next generation specification Java EE5.0, JSF technology is placed in a very important position, the Java-EE community tries to unify the open mode and method of Web application through JSF, but whether JSF can take the responsibility that sun entrusts with. Realize the unification of web development. Many developers are not optimistic about JSF, the use of JSF is called JSF is the Web development world pioneering work, JSF is a wall of flowers, the wall is not red, what is the cause of such a sharp contrast.1. How to getThe book is the first source of knowledge we acquire, a kind of technical popularity, we do not have to do any research on the Internet, as long as the book City to the results of a clear glance, the book on JSF is simply rare, difficult to find the final shadow, so that people in the acquisition of JSF related information, JSF will be greatly reduced, compared with the classic JSF Action "No domestic publishing house has a translation trend, proving that the book manufacturers have not put too much attention to the JSF.2 . Chinese discussion area not mature enoughIn addition to books, the heat of the discussion area is also important to open up the JSF official discussion area, there are a lot of praise to the JSF, why there is so little domestic discussion. Some of the more well-known discussion areas in the country do not see the technical discussion of JSF, so from the impact of the degree of knowledge in the desire to limit the progress of JSF.3 . Sun Business StrategySun's business model has been a problem, and we have predicted that if JSF is not called JSF, it's called JSP3.0 so what happens now. Sun can make a reasonable transition from JSP to JSF without the cost of a pawn. There will also be a large number of JSP enthusiasts quickly turn to JSF, or some people may think that the two are different technologies, but who can say that ASP and ASP.net are the same technology. The same strategy Microsoft used very successfully, Sun did not think of it.4 . Level of support for development toolsIn general, the interview also mentions the JSF relies on development tools support, Sun,ibm,orcale has proposed to the JSF development tool support, but these development tools in simplifying the development aspect to have done the homework, the pet big, comprehensive, does not always is the manufacturer to show off the technology the stage, This time Apusic studio has proposed a simplified, easy-to-use feature, which is a developer tool from the programmer's point of view, and we still look forward to it.5 . To enlarge the Influence force Every technology must have a faithful fanatic, at the same time to allow more people to apply and learn, struts success is a good example, a well-known it personage once said, "even if the company has a terrible change in personnel, product managers do not have to panic, the vast sea, a large number of struts are available to choose , just take a good look at how the new employee's business training can be carried out, and for technical continuity, there is no need to worry too much, this is the strategic advantages of struts, and struts in today's technical backwardness of the situation can still remain the leading position, which is worth rethinking, How JSF can influence the expansion of learners ' grassroots population, dispel the worries of the enterprise, and influence the high level's application to the JSF Enterprise framework, I wonder whether JSF is prepared. To sum up, it is only my personal view that if JSF can break through bottlenecks in influencing and broadening the base, then the pattern of unified web development will be around the corner.  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.