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> <ice:outputText value="#{customer.fullName}" /> </ice:column> <ice:column> <f:facet name="header"> <ice:outputText value="Birth Date" /> </f:facet> <ice:outputText...