JSF - Facelet

Java Conceptuel Diagram


The term Facelets refers to the view declaration language for JavaServer Faces technology.

Facelets is a page declaration language that is used to build JavaServer Faces views using HTML style templates and to build component trees.

Facelets can be use with JSF 1.1 and higher and is a part of JSF 2.0.

Facelets features include the following:

  • Use of XHTML for creating web pages
  • Support for Facelets tag libraries in addition to JavaServer Faces and JSTL tag libraries
  • Support for the Expression Language (EL)
  • Templating for components and pages

Facelets technology offers several advantages.

  • Code can be reused and extended for components through the templating and composite component features.
  • When you use the JavaServer Faces Annotations feature, you can automatically register the managed bean as a resource available for JavaServer Faces applications. In addition, implicit navigation rules allow developers to quickly configure page navigation. These features reduce the manual configuration process for applications.
  • Most important, JavaServer Faces technology provides a rich architecture for:
    • managing component state,
    • processing component data,
    • validating user input,
    • and handling events.


<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        <title>Facelet Title</title>
        Hello from Facelets

Documentation / Reference

Discover More
Jsf Dynamic Data Table
JSF - Dynamic Data Table (With Facelet and Dynamic SQL)

How to create a dynamic JSF data table with a facelet page ? Example made with: JSF 2.0 JDK 1.6 (J2EE 6) on Glassfish with NetBeans 7.1 The facelet page just need a place holder to include...
Java Conceptuel Diagram
Java - Expression Language (EL)

The Expression Language (also referred to as the EL) provides an important mechanism for enabling the presentation layer (web pages) to communicate with the application logic (managed beans). The EL...
Java Conceptuel Diagram
JavaServer Faces (JSF)

The request: means to maintain the state for the time of a request session: means to maintain the state for the time of a session (between page views) none: means that the bean will be created but...

Share this page:
Follow us:
Task Runner