[ 
https://issues.apache.org/jira/browse/TRINIDAD-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias Weßendorf resolved TRINIDAD-2009.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-beta-2
                   1.2.15-core 
         Assignee: Matthias Weßendorf

> tr:table selectAll also selects disabled chekcboxes
> ---------------------------------------------------
>
>                 Key: TRINIDAD-2009
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2009
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.2.13-core 
>         Environment: FF 3.6, facelets 1.1.15, jsf-ri 1.2._12, trinidad 1.2.13
>            Reporter: Markus Dreher
>            Assignee: Matthias Weßendorf
>            Priority: Trivial
>             Fix For: 1.2.15-core , 2.0.0-beta-2
>
>
> 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) {
>               box.checked = selectAll;
>             }
>         }
>     .....

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to