Monday, January 13, 2014

PrimeFaces DataTable Selection Event

Following is the list of available events for row selection when using <p:dataTable />

No. Event Purpose/Usage
1 rowSelect Select a row by clicking on the row
2 rowUnselect Unselect a row by clicking on the row
3 rowSelectCheckbox Select a row by checking the selection checkbox
4 rowUnselectCheckbox Unselect a row by unchecking the selection checkbox
5 toggleSelect Select/Unselect all rows by clicking on the header checkbox
6 rowDblselect Select/Unselect a row when D-click



Done!!

3 comments:

  1. is there an Event when you change page ? (Paginator)

    ReplyDelete
    Replies
    1. Hi,
      you may try this
      http://stackoverflow.com/questions/17487670/update-component-at-change-of-page-on-primefaces-datagrid-with-pagination

      Delete
  2. Great info! It helps me a lot. Thanks!

    ReplyDelete

LinkWithin

Related Posts Plugin for WordPress, Blogger...