-
1. Re: rich:extendedDataTable with select all rows functionality via a check box
ilya_shaikovsky May 27, 2010 5:57 AM (in response to shanikaweerapperuma)Hi,
please try not to use selection.setSelectAll(selectAllClicked); at all and just add all items to selection set in selectBox action.
-
2. Re: rich:extendedDataTable with select all rows functionality via a check box
shanikaweerapperuma May 27, 2010 11:16 PM (in response to ilya_shaikovsky)Hi Ilya,
Thank you very much. I really appreciate all your efforts to answer many questions like this everyday.
Now it works fine after following your instructions ( Now i use selection.addKey method to add all rows to the selection as below) :
public void selectAllValueChanged(){
selectedRuleVersions.clear();
selection.clear();
// If all selected copy all
if (selectAllClicked == true){
int i = 0;
for (RuleVersion r : todo){
selectedRuleVersions.add(r);
selection.addKey(i++);
}
}
}Regards
Shanika