Book Image

Mastering JavaServer Faces 2.2

By : Anghel Leonard
Book Image

Mastering JavaServer Faces 2.2

By: Anghel Leonard

Overview of this book

Table of Contents (20 chapters)
Mastering JavaServer Faces 2.2
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
The JSF Life Cycle
Index

Working with HTML5 and JSF 2.2


Everybody involved in web application development is enthusiastic to explore and use HTML5, which comes with a suite of new components and features, such as <audio>, <video>, <keygen>, and so on. Starting with version 2.2, JSF developers can interact with HTML5 using the following:

  • Pass-through attributes

  • Pass-through elements (HTML-friendly markup)

Note

Although pass-through elements and pass-through attributes are inspired by HTML5, they are JSF elements that might be used with other HTML versions as well.

These mechanisms are the alternative to writing custom render kits. This is a great solution, because HTML5 is in the developing stage, which means that writing and adapting render kits to constant HTML5 changes can be a real challenge.

If you want to use HTML5 with JSF 2.0, then you need to write custom render kits for supporting the new components and attributes.

Pass-through attributes

Starting with JSF 2.2, we have attributes that are processed...