Tuesday 28 May 2013

JSF DataTable


JSF provides a rich control named DataTable to render and format html tables.

  • DataTable can iterate over collection or array of values to display data.
  • DataTable provides attributes to modify its data in 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







No comments:

Post a Comment