alloy:dataTable

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.

Sort (Single Column) Usage

In order to enable sorting, the value attribute of the DataTable must implement the Sortable interface (such as OnDemandDataModel). When the user clicks on a sortable column header, the Sortable.setSortCriteria(List<SortCriterion>) method is called on the DataTable's value. Columns can be made sortable by setting the sortBy attribute of a nested alloy:column component tag.

Customers
  • Results 1-10 of 162 (Page 1 of 17)
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