• Post Reply Bookmark Topic Watch Topic
  • New Topic

To uncheck all checkboxes of primefaces datatable on click of command button  RSS feed

 
Raghu Sundar
Ranch Hand
Posts: 40
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I have a editable primefaces datatable with checkboxes as one of the column.Is there any way to uncheck all checked checkboxes on click of the command button.
My JSF page code snippet.

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. JSF is Model/View/Controller based so in order to clear the checkmarks in the View, clear their associated values in the Model, then re-render the affected part of the View

Your sample doesn't appear to actually include the checkboxes, so I'll improvise them

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!