ICEfaces
  1. ICEfaces
  2. ICE-4211

rowSelector multiple=false still allows for multiple selection _IF_ no selectionListener is registered

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8RC1
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Any

      Description

      In rowSelector, it's still possible to select multiple rows when multiple=false if no selectionListener was registered

      This means that if you have a rowSelector component declared just like this...

          <ice:rowSelector id="rowselector" value="#{var.selected}" multiple="false" />

      ...you will still be able to select multiple rows.



      To reproduce the issue, follow these steps:

      1. Deploy component-showcase.
      2. Navigate to the folder webapps\component-showcase\WEB-INF\includes\examples\custom
      3. Open the file named 'dataTable-rowSelection.jspx'.
      4. Around line 95, remove this attribute from the <ice:rowSelector /> tag:

          selectionListener="#{rowSelectController.rowSelectionListener}"

      5. On your browser, navigate to the component-showcase app and load the Row Selection example.
      6. Try selecting a few rows and see how all of them stay selected
      7. Restore the attribute deleted on step 4, and reload the page on the browser.
      8. Now you can see that only one row can have selected state in the entire table.

        Activity

        Hide
        Arturo Zambrano added a comment -

        fixed it as part of ICE-3591

        Show
        Arturo Zambrano added a comment - fixed it as part of ICE-3591
        Hide
        Joanne Bai added a comment -

        Fix verified on ICEfaces trunk revision 18864.

        Test application for it has been added to repo.

        Show
        Joanne Bai added a comment - Fix verified on ICEfaces trunk revision 18864. Test application for it has been added to repo.

          People

          • Assignee:
            Unassigned
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: