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.

Get Mastering JavaServer Faces 2.2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.