Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.2.13-core
-
None
-
FF 3.6, facelets 1.1.15, jsf-ri 1.2._12, trinidad 1.2.13
Description
CollectionComponent.multiSelect enables/disables ALL chekcboxes on a page, even if the boxes are disabled. this is misleading to the user, because after submitting the page, only the enabled rows are selected.
After sorting or changing the range of the table also everything is displayed correctly (only enables boxes are selected).
At the end only enabled boxes could be processed by the application, but user sees more selected boxes in the beginning.
Maybe the Javascript can check if the box is disabled/enabled and only set a new value if it is enabled.
CollectionComponent.prototype.multiSelect = function(selectAll) {
var boxes = this._getBoxes();
for(var i=0; i<boxes.length; i++)
{
var box = boxes[i];
if(!box.disabled)
}
.....