Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
JavaServer Faces

JavaServer Faces

Ratings: (0)|Views: 3 |Likes:
Published by sohelsun

More info:

Published by: sohelsun on Jul 15, 2014
Copyright:Traditional Copyright: All rights reserved

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/15/2014

pdf

text

original

 
Stable release
2.2.7 (Mojarra ReferenceImplementation) / June 10, 2014
Written in
Java
Type
Web application framework 
Website
 javaserverfaces.java.net(http://javaserverfaces.java.net/)
JavaServer Faces
JavaServer Faces
From Wikipedia, the free encyclopedia
JavaServer Faces
 (
JSF
) is a Java specification forbuilding component-based user interfaces for webapplications.
[1]
 It was formalized as a standardthrough the Java Community Process and is part of the Java Platform, Enterprise Edition.JSF 2 uses Facelets as its default templating system.Other view technologies such as XUL can also beemployed. In contrast, JSF 1.x uses JavaServer Pages(JSP) as its default templating system.
Contents
1 JSF versions2 How it works3 JSF and Ajax4 Ajax-enabled components and frameworks5 Latest developments6 Criticism7 References7.1 Notes8 External links
JSF versions
JSF 2.2 (2013-05-21) — Introduced new concepts like stateless views, page flow and the ability tocreate portable resource contracts.
[2]
JSF 2.1 (2010-11-22) — Maintenance release 2 of JSF 2.0. Only very minor amount of spec changes.
[3][4]
JSF 2.0 (2009-07-01) — Major release for ease of use, enhanced functionality, and performance.Coincides with Java EE 6.JSF 1.2 (2006-05-11) — Many improvements to core systems and APIs. Coincides with Java EE 5.Initial adoption into Java EE.JSF 1.1 (2004-05-27) — Bug fix release. No specification changes.JSF 1.0 (2004-03-11) — Initial specification released.
How it works
Based on a component-driven UI design-model, JavaServer Faces uses XML files called
view templates
 or
JavaServer Faces - Wikipedia, the free encyclopediahttp://en.wikipedia.org/wiki/JavaServer_Faces1 sur 415/07/2014 14:01
 
Facelets views. The FacesServlet processes requests, loads the appropriate view template, builds acomponent tree, processes events, and renders the response (typically in the HTML language) to the client.The state of UI components and other objects of scope interest is saved at the end of each request in aprocess called
stateSaving
 (note:
transient 
 
true
), and restored upon next creation of that view. Either theclient or the server side can save objects and states.
JSF and Ajax
JSF is often used together with Ajax, a Rich Internet application technology. Ajax is a combination of technologies that make it possible to create rich user interfaces. The user interface components in Mojarra(the JSF reference implementation
[5]
) and Apache MyFaces were originally developed for HTML only, andAjax had to be added via JavaScript. This has changed, however:Because JSF supports multiple output formats, Ajax-enabled components can easily be added to enrichJSF-based user interfaces. The JSF 2.0 specification provides built in support for Ajax by standardizing theAjax request lifecycle, and providing simple development interfaces to Ajax events, allowing any eventtriggered by the client to go through proper validation, conversion, and finally method invocation, beforereturning the result to the browser via an XML DOM update.JSF 2 includes support for graceful degradation when JavaScript is disabled in the browser.
Ajax-enabled components and frameworks
The following companies and projects offer Ajax-based JSF frameworks or component libraries:PrimeFaces Ajax framework with JSF componentsJBoss
 RichFaces
 (derived from and replaces
 Ajax4jsf 
), Ajax-enabled JSF components for layout, fileupload, forms, inputs and many other features.Oracle
 ADF Faces Rich Client 
, Oracle Application Development Framework Backbase
 Enterprise Ajax — JSF Edition
, Ajax framework IBM Notes - XPagesApache MyFaces, The Apache Foundation JSF implementation with Ajax componentsSun
 Java BluePrints AJAX Components
ZK Ajax framework with JSF componentsICEfaces, open-source, Java JSF extension framework and rich components, Ajax without JavaScript
Latest developments
Facelets (which was designed specifically for JavaServer Faces) was adopted as the official view technologyfor JSF 2.0. This eliminates the life-cycle conflicts that existed with JSP, forcing workarounds by Javadevelopers.
[6]
 Facelets allows easy component/tag creation using XML markup instead of Java code, thechief complaint against JSF 1.x.The new JSF developments also provide wide accessibility to Java 5 annotations such as @ManagedBean,@ManagedProperty and @FacesComponent which removes the need for faces-config.xml in all casesexcept framework extension. Navigation has been simplified, removing the need for faces-config.xmlnavigation cases. Page transitions can be invoked simply by passing the name of the desired View/Facelet.
JavaServer Faces - Wikipedia, the free encyclopediahttp://en.wikipedia.org/wiki/JavaServer_Faces2 sur 415/07/2014 14:01
 
Addition of Partial State Saving and DOM updates are part of the built in standardized Ajax support.The latest JSF release has built-in support for handling resources like images, CSS and Javascript, allowingartifacts to be included with component libraries, separated into JAR files, or simply co-located into aconsistent place within the web-application. Includes logical naming and versioning of resources.JSF 2.0 also includes a number of other changes like adding support for events, separate development,staging, and production modes, similar to RAILS_ENV in Ruby on Rails, and significantly expanding thestandard set of components.
Criticism
In their January 2014 "Technology Radar" publication, ThoughtWorks wrote:
[7]
We continue to see teams run into trouble using JSF -- JavaServer Faces -- and arerecommending you avoid this technology. Teams seem to choose JSF because it is a J2EE (sic)standard without really evaluating whether the programming model suits them. We think JSF isflawed because it tries to abstract away HTML, CSS and HTTP, exactly the reverse of whatmodern web frameworks do. JSF, like ASP.NET webforms, attempts to create statefulness ontop of the stateless protocol HTTP and ends up causing a whole host of problems involvingshared server-side state. We are aware of the improvements in JSF 2.0, but think the model isfundamentally broken. We recommend teams use simple frameworks and embrace andunderstand web technologies including HTTP, HTML and CSS.
References
Oracle JavaServer Faces Technology (http://www.oracle.com/technetwork/java/javaee /javaserverfaces-139869.html)JSF specification (https://javaserverfaces.java.net/)JSR 344 (http://www.jcp.org/en/jsr/detail?id=344) (JSF 2.2)JSR 314 (http://www.jcp.org/en/jsr/detail?id=314) (JSF 2.0 and JSF 2.1)JSR 252 (http://www.jcp.org/en/jsr/detail?id=252) (JSF 1.2)JSR 127 (http://www.jcp.org/en/jsr/detail?id=127) (JSF 1.0 and 1.1)JSR 316 (http://jcp.org/en/jsr/detail?id=316) (Changes to JSF 2.0 in Java EE 6)
Notes
^
 JavaServer Faces Technology (http://www.oracle.com/technetwork/java/javaee/javaserverfaces-139869.html)1.
^
 JSF 2.2 (JSR-344) is final | techscouting through the java news (http://blog.oio.de/2013/04/16/jsf-2-2-jsr-344-is-final/). Blog.oio.de. Retrieved on 2013-07-29.2.
^
 JSR 314 JavaServer Faces 2.1 JSF 2.1 | techscouting through the java news (http://blog.oio.de/2010/11/24/jsr-000314-javaservertm-faces-2-1/). Blog.oio.de. Retrieved on 2013-07-29.3.
^
 Bosch, Andy (2010-11-29). "Was ist neu in JSF 2.1" (http://it-republik.de/jaxenter/news/Was-ist-neu-in-JSF-2.1-057653.html) (in German). it-republik.de. Retrieved 2013-02-19.4.
^
 Ryan Lubke (5 December 2007). "Project Mojarra - the JSF RI gets a code name" (https://blogs.oracle.com /rlubke/entry/project_mojarra_the_jsf_ri).5.
^
 Bergsten, Hans. "Improving JSF by dumping JSP" (http://onjava.com/pub/a/onjava/2004/06/09/jsf.html).6.
JavaServer Faces - Wikipedia, the free encyclopediahttp://en.wikipedia.org/wiki/JavaServer_Faces3 sur 415/07/2014 14:01

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->