Curious about Facelets, but short on time for trying a new product? This short cut shows you how to start developing web pages quickly with Facelets, the new JavaServer Faces-based templating framework.
This short cut begins with an explanation of what Facelets is, how it works, and what it will do for you. Then, it shows you how to install Facelets, and teaches you how to build Facelets templates, how to create UI components without writing a single line of Java code, how to create custom Facelets tags, how to integrate AJAX into a Facelets application, and more.
Facelets unleashes the power and versatility of Faces by replacing the default JSP view handler with an xhtml template compiler. This short cut shows how Facelets lessens development time and improves code reusability. Are you ready to build a top-notch JSF user interface with Facelets? Power up your computer and let's go.
Table of Contents
- A Note Regarding Supplemental Files
Chapter 1. Introducing Facelets: A Better JSF ViewHandler
- 1.1 What Is Facelets?
- 1.2 JavaServer Faces Integration
- 1.3 How Facelets Works
- 1.4 Why Facelets?
Chapter 2. Setting Up the Facelets Development Environment
- 2.1 About the Facelets Development Environment
- 2.2 Development Software
- 2.3 Download and Install the Prerequisite Software
- 2.4 Download and Install IDE
2.5 Download and Configure Facelets
- 2.5.1 Download the Facelets distribution
- 2.5.2 Configure a web project
- 2.5.3 Copy the Facelets and JSF libraries to the web project
- 2.5.4. Configure the application web descriptor (web.xml).
- 2.5.5 Set up the JavaServer Faces configuration file (faces-config.xml)
- 2.5.6 Add the JSF and Facelets libraries to the deployment
- 2.6 Download, Install, and Configure Database Software
- 2.7 Configure JBoss MySQL DataSource
- 2.8 Start Server to Check Deployment
- 2.9 Importing the GoodEats! Project into Eclipse
- Chapter 3. Developing JSF Views with Facelets
Chapter 4. Developing and Using Facelets Templates
- 4.1 What Are Templates?
- 4.2 Developing a Templating Strategy
- 4.3 Advanced Templating
- Chapter 5. Developing and Using Facelets Component Tags
Chapter 6. Developing and Using Composition Components
- 6.1 What Are Composition Components?
- 6.2 Creating a Composition Component
- 6.3 Example: A List Layout Composition Component
Chapter 7. Extending and Customizing Facelets
- 7.1 Extensibility: JSF and Facelets
- 7.2 Extending Facelets with Custom Tags
- 7.3 Custom Tag Example: Joda DateTime Converter
- 7.4 Extending Facelets with Custom TagHandlers
- 7.5 Custom TagHandler Example: The execute TagHandler
- 7.6 Extending Facelets with EL Functions
Chapter 8. Enriching the User Interface Experience with AJAX
- 8.2 Facelets, JSF, and AJAX
- 8.3 Example: Ajax-enabled selection boxes
Chapter 9. The Good Eats! Web Site
- 9.1 What Is the Good Eats! Web Site?
- 9.2 Requirements
- 9.3 Web Site Construction
- About the Author
- Title: Facelets
- Release date: March 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596529246