JSF provides a rich control named DataTable to render and format html tables.
DataTable can iterate over a collection or array of values to display data.
DataTable provides attributes to modify its data in an easy way.
<html xmlns = "http://www.w3.org/1999/xhtml" xmlns:h = "http://java.sun.com/jsf/html"> </html>
Following are important DataTable operations in JSF 2.0 −
S.No | Tag & Description |
---|---|
1 | Display DataTable
How to display a dataTable |
2 | Add data
How to add a new row in a dataTable |
3 | Edit data
How to edit a row in a dataTable |
4 | Delete data
How to delete a row in dataTable |
5 | Using DataModel
Use DataModel to display row numbers in a dataTable |