Document Information

Preface

Part I Introduction

1.  Overview

2.  Using the Tutorial Examples

Part II The Web Tier

3.  Getting Started with Web Applications

4.  Java Servlet Technology

5.  JavaServer Faces Technology

What's Facelets?

Advantages of Facelets

Authoring Facelets Pages

Tag Libraries and EL Support

Tag Library Support

Unified EL Support

Developing a Simple JavaServer Faces Application

Creating a Facelets application

Developing a Backing Bean

Creating Facelets Views

Creating a Resource Bundle

Configuring the Application

Adding Managed Bean Declarations

Adding Resource Bundle Declarations

Adding Page Navigation Rules

Web Application Deployment Descriptor

Building, Packaging, Deploying and Running the Application

To Create the Example Facelets Application Project

To Create the Sample Application

7.  Using JavaServer Faces Technology in Web Pages

8.  Developing with JavaServer Faces Technology

9.  Configuring JavaServer Faces Applications

Part III Web Services

10.  Introduction to Web Services

11.  Building Web Services with JAX-WS

12.  Building RESTful Web Services with JAX-RS and Jersey

Part IV Enterprise Beans

13.  Enterprise Beans

14.  Getting Started with Enterprise Beans

15.  Running the Enterprise Bean Examples

Part V Persistence

16.  Introduction to the Java Persistence API

17.  Running the Persistence Examples

18.  The Java Persistence Query Language

Part VI Security

19.  Introduction to Security in the Java EE Platform

20.  Using Java EE Security

21.  Securing Java EE Applications

22.  Securing Web Applications

Part VII Java EE Supporting Technologies

23.  Introduction to Java EE Supporting Technologies

24.  Transactions

25.  Resource Connections

Index

 

Chapter 6

Introduction to Facelets

The term Facelets is commonly used to refer to the JavaServer Faces View Definition Framework, which is a page declaration language that was developed for use with JavaServer Faces technology.

The concept of View Declaration Language (VDL), introduced in JavaServer Faces 2.0, allows declaration of UI components in different presentation technologies. Both JavaServer Pages and Facelets are considered different implementations of VDL.

Facelets technology is developed specifically for JavaServer Faces. As of JavaServer Faces 2.0, JavaServer Faces implementations will support Facelets. It is also now the preferred presentation technology for building JavaServer Faces based applications.