ICEfaces
  1. ICEfaces
  2. ICE-4409

RowSelectorEvent doesn't contain all selected rows

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      XP, Tomcat
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      When using enhancedMultiple="true", just the last selected row will be found in RowSelectorEvent.selectedRows when using CTRL+MouseButton. Due to method signature and documentation, all selected rows are expected.

      - Part of xhtml:
      <ice:rowSelector value="#{item.selected}" multiple="true" enhancedMultiple="true"
      selectionListener="#{simpleTableBean.rowSelectionListener}"/>


      - Part of Bean:
      public void rowSelectionListener(RowSelectorEvent event) {
      ...
      }

      Please note: The enhanced selection itself works as considered, but the event doesn't transport this information.

        Activity

        Hide
        Adnan Durrani added a comment -

        Tlddocs and javadocs added.

        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\RowSelectorEvent.java
        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\rowselector-renderer.xml
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\rowselector-renderer.xml
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\RowSelectorEvent.java
        Completed: At revision: 18834

        Show
        Adnan Durrani added a comment - Tlddocs and javadocs added. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\RowSelectorEvent.java Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\rowselector-renderer.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\rowselector-renderer.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\RowSelectorEvent.java Completed: At revision: 18834
        Hide
        Ken Fyten added a comment -

        This is a documentation issue, the event is behaving as intended. Only those rows selected as part of the context of a particular selection event are included in the event itself. You need to refer to the table model to see the total select row state.

        We will improve the JavaDoc for the selection event to make this clear.

        Show
        Ken Fyten added a comment - This is a documentation issue, the event is behaving as intended. Only those rows selected as part of the context of a particular selection event are included in the event itself. You need to refer to the table model to see the total select row state. We will improve the JavaDoc for the selection event to make this clear.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Zeller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: