21 Jul 2011, 12:55
I personally would expect only the shown elements to be selected. But i too understand that there are use cases where selecting all elements on all pages would be useful. Therefor from a usability point of view something along the line what kukeltje mentioned would be a good compromise for bringing the user expactations and the mentioned use cases together. Or at least the possibility to configure if all or the currently shown items should be selected would be nice.
related to this is a problem i found recently but couldn't find any statements (if it's supposed to be a bug or intentionally like this):
When I check the checkbox in the header to select all items and then uncheck single rows (items) to exclude them i notice 2 things.
1. The Checkbox in the header is still checked -> i would expect this to be unchecked, because i unchecked at least one row and therefor no longer all items are selected (which is indicated by the header-checkbox)
2. The bound array in the backing bean still holds all elements. I would expect that the unchecked rows (items) are not included in this array (i didn't look in the implementation, but i guess this could come from the header-checkbox still being checked)
I also noticed this behavior in the labs-showcase. In the normal showcase the first point also exists, but the unselected rows are excluded from being shown, when "view" is clicked. So i guess the second point may be a bug?
regards,
Tori
Primefaces 3.0 M2 - Glassfish 3.1