Alloy Showcase
alloy:dataTable
DataTable is a UIData (iterator) component that renders atable
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.
Selection Usage
Setting selectionMode=checkbox
will render a check in the first column of each row which enables selection of multiple rows.
Setting selectionMode=radio
will render a radio button in the first column of each row which enables selection of a single row. The user can hold down the ā or ā (meta) key in order to deselect the currently selected row.
The selected row indexes can be determined in a backing bean by calling DataTable's getSelectedRowIndexes()
method.
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