Facelets Essentials: Guide to JavaServer Faces View Definition Framework

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Facelets is a templating language developed from the ground up with JavaServer Faces in mind. Created in response to the many concerns involving JSP when building JavaServer Faces views, Facelets steps outside of the JSP specification and provides a highly performant, JSF–centric view technology. Facelets top properties, templating, reuse, and ease of development, allows it to help making JSF a technology suitable for large–scale projects. One of the first things a developer using Facelets finds is that it immediately leads to a reduction in UI code.

Facelets Essentials, the first book on Facelets, introduces you to its importance, architecture, and relationship to JSF and the Apache MyFaces web framework. Learn to create your first application using the power and flexibility Facelets offers. Then, master and apply its basic and advanced features including Unified Expression Language, templating and reuse, custom tag development, and more.

What you’ll learn

  • See why you should use Facelets and the Facelets architecture.
  • Ccreate your first application with Facelets.
  • Use the Facelets Unified Expression Language.
  • Explore Facelets templating and reuse, as well as the tag reference and custom tag development.
  • Create composition components.
  • Extend the ViewHandler.
  • And more

Who is this book for?

This book is for Java web developers who are using or experienced with JSF and perhaps learning to use the MyFaces web framework.

Author(s): Bruno Aranda, Zubin Wadia
Series: Firstpress
Edition: 1
Publisher: Apress
Year: 2008

Language: English
Pages: 90

Facelets Essentials......Page 1
Contents......Page 3
Facelets......Page 7
Why Use Facelets......Page 8
Downloading Facelets......Page 9
CVS......Page 10
Adding Dependencies......Page 11
Creating a Project Structure......Page 12
Configuring the Web Descriptor (web.xml)......Page 13
Creating JSF Views......Page 16
The Happy Birds Directory......Page 17
Migrating an Existing Application from JSP to Facelets......Page 26
Unified Expression Language......Page 27
Tag Libraries......Page 28
Available Libraries......Page 30
Creating a Tag Library......Page 31
Functions......Page 34
The jsfc Attribute......Page 36
Facelets Templating and Template Clients......Page 37
......Page 38
......Page 39
......Page 40
......Page 41
......Page 44
......Page 45
......Page 46
......Page 47
......Page 50
......Page 53
......Page 54
Creating Composition Components......Page 55
Creating the Tag Source File......Page 56
Registering the Tag in the Tag Library......Page 58
Using the Tag......Page 59
Creating the Tag Source File......Page 60
Registering the Tag in the Tag Library......Page 61
Using the Tag......Page 62
Creating the Tag Source File......Page 63
Registering the Tag in the Tag Library......Page 67
Using the Tag......Page 68
Creating the Tag Source File......Page 69
Registering the Tag in the Tag Library......Page 70
Using the Tag......Page 71
Reusing the Custom Tag Library......Page 72
Using Source Files from Other JAR Libraries......Page 73
Facelets Architecture......Page 75
Custom Tag Development......Page 77
Using Metatags......Page 81
Custom ComponentHandlers......Page 82
Custom ConvertHandlers......Page 86
Custom ValidateHandlers......Page 87
Extending the ViewHandler......Page 89
Copyright......Page 90