O'Reilly logo

JSF 1.2 Components by Ian Hlavats

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying data in tables

ICEfaces includes a powerful data table component that provides many advanced features out of the box without requiring much additional coding. This component supports sorting by clicking on column headers, dragging to resize column headers, row selection, pagination, and more.

The ICEfaces data table component

To construct an ICEfaces data table, we use the<ice:dataTable> tag in combination with the<ice:column> tag, similar to the way the standard JSF HTML data tables are assembled. Each column can have a header facet, and the table supports row banding as well.

<ice:dataTable value="#{customerBean.customerList}" var="customer" rows="5"> <ice:column> <f:facet name="header"> <ice:outputText value="Full Name" /> </f:facet> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required