DataTable is a UIData (iterator) component that renders a table element with tabular data and is designed to be used in conjunction with alloy:column child component tags. Since it extends HtmlDataTable, it supports all the features of h:dataTable.

General Usage

The value attribute tag must be bound via EL to a model bean property (which is wrapped implicitly by JSF with a DataModel). The var attribute is used to introduce a variable name into the EL when iterating over the model.
First Name Last Name Date of Birth Country
John Adams Nov 30, 1735 United States
Samuel Adams Oct 27, 1722 United States
Josiah Bartlett Dec 21, 1729 United States
Carter Braxton Oct 16, 1736 United States
Charles Carroll Oct 19, 1737 United States
Benjamin Franklin Feb 17, 1706 United States
Elbridge Gerry Mar 03, 1701 United States
John Hancock Feb 23, 1737 United States
Thomas Jefferson May 13, 1743 United States
Francis Lewis Apr 21, 1713 United States

Source Code

Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20