Facelets

Facelets
Stable release
2.0 / June 28, 2009 (2009-06-28)
Written inJava
Operating systemCross-platform
TypeWeb template system
Websitefacelets.dev.java.net Edit this on Wikidata
Facelets standalone
Stable release
1.1.15 / November 24, 2009 (2009-11-24)
Preview release
1.2-dev / November 10, 2006 (2006-11-10)
Written inJava
Operating systemCross-platform
Size5.07 MB (archived)
TypeWeb template system
LicenseApache License 2.0
Websitefacelets.java.net

In computing, Facelets is an open-source Web template system under the Apache license and the default view handler technology (aka view declaration language) for Jakarta Faces (JSF; formerly Jakarta Server Faces and JavaServer Faces). The language requires valid input XML documents to work. Facelets supports all of the JSF UI components and focuses completely on building the JSF component tree, reflecting the view for a JSF application.

Although both JSP and Faces technologies have been improved to work better together, Facelets eliminates the issues noted in Hans Bergsten's article "Improving JSF by Dumping JSP"[1]

Facelets draws on some of the ideas from Apache Tapestry,[2][3] and is similar enough to draw comparison. The project is conceptually similar to Tapestry's, which treats blocks of HTML elements as framework components backed by Java classes. Facelets also has some similarities to the Apache Tiles framework with respect to support templating as well as composition.

Facelets was originally created by Jacob Hookom in 2005[3] as a separate, alternative view declaration language for JSF 1.1 and JSF 1.2 which both used JSP as the default view declaration language. Starting from JSF 2.0, Facelets has been promoted by the JSF expert group to be the default view declaration language. JSP has been deprecated as a legacy fall back.[4][5]

  1. ^ Bergsten, Hans (June 9, 2004). "Improving JSF by Dumping JSP". ONJava. O'Reilly Media. Archived from the original on 2018-04-05.
  2. ^ "Facelets: JavaServer Faces View Definition Framework". java.net. Archived from the original on 2016-12-31.
  3. ^ a b Hookom, Jacob (August 17, 2005). "Inside Facelets Part 1: An Introduction". JSFCentral. Archived from the original on 2020-01-05.
  4. ^ Burns, Ed; Schalk, Chris (2009). JavaServer Faces 2.0, The Complete Reference. McGraw-Hill. ISBN 978-0-07-162509-8. p. 55: The expert group decided to move forward with Facelets as the basis for new features while letting JSP remain as a backward compatibility layer.
  5. ^ Burns, Ed; Kitain, Roger, eds. (November 8, 2010). JavaServer Faces Specification, Version 2.1. JCP (Technical report) (MR2 ed.). Oracle. JSR-314. p. 10-1: Facelets is a replacement for JSP that was designed from the outset with JSF in mind. New features introduced in version 2 and later are only exposed to page authors using Facelets. JSP is retained for backwards compatibility.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search