Im using datatable and i got a requirement to have a checkbox in the header section along with the label "Action"
on select it should select all the checkboxes under that column and on uncheck it should
uncheck all the selected checkboxes below ..
Could someone suggest the approach to be taken for this scenario.
is it possible to add another checkbox alongside header label under same facet tag?
Yes, it is perfectly valid you can use panelGrid inside the facet and have the header checkbox along with the header label.
simply you can java script to select and un select all the other rows checkboxes.
Joined: Jun 02, 2009
I made the header column as Command link and called the action to do the select/deselect functionality in backing bean class.