I´ve implemented a datatable in JSF with a column with a attribute selectionMode=”multiple”.
Everything is working so far.
Is there a way to manipulate the value of the checkbox? I want to set the checkbox on the first load to checked or to unchecked, depending on a specific value.
The function i have implemented (in java) returns already true or false, but i need to set the checkboxValue to that value. What do i have to do to ?
You can manipulate the checkbox value through the
valueattribute like for any other component. See the DataTable demo with multiple selection:DataTable – RadioCheckbox