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

Summary


Tabular data is very commonly used in web applications, and this chapter is a tribute to the powerful JSF DataTable component (<h:dataTable>). JSF 2.2 brought even more power by allowing developers to render more collections than before, by adding the new CollectionDataModel class. This chapter covers the most common tasks that a table should accomplish, such as sorting, filtering, lazy loading, and CSS support. Notice that a cool and comprehensive extension of the <h:dataTable> tag is provided by PrimeFaces (http://primefaces.org/) under the tag named <p:dataTable> (http://www.primefaces.org/showcase/ui/datatableHome.jsf).

In the next chapter, we will be covering the AJAX technique for JSF applications.