ICEfaces
  1. ICEfaces
  2. ICE-5409

RowSelector: SelectionEvent is fired without clicking a row.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Alpha3, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Server: Glassfish v3 (jdk 1.6.0_18) on Linux.
      Browser: Current Safari (MacOS), Firefox 3.5.7/Linux
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Using cklickListener for controlling selected-Property. Therefore use empty setter for selected-property bound in selected-attribute of rowSelector. Implement management of selection /deselection in clicklistener.
      Quick and dirty...
      Show
      Using cklickListener for controlling selected-Property. Therefore use empty setter for selected-property bound in selected-attribute of rowSelector. Implement management of selection /deselection in clicklistener. Quick and dirty...

      Description

      For sources please look at referenced thread.
      For short:
      Page with datatable including rowSelector and a button.
      Sessionscoped Datamodel for datatable (value) extends ListDataModel with three items.
      "selectionAction" is bound to a method writing out to server.log. Button action writes a message, too. So watch the log while testing.
      After deploying:
      1. select first row.
      2. select second row.
      3. deselect second row.
      4. press button above.

      Second row is now selected again.
      On each step above (1-4) "Selection Action" is written to the log.
      The button action itself is never called in that sequence! (no "Button Action" in log).

        Activity

        Hide
        Joanne Bai added a comment -

        Cannot reproduce in the following environments:

        Glimmer revision 21619
        Servers: Glassfish v3 and Tomcat 6.0.26 (on Windows XP SP3)
        Browsers: FF3.6, Safari 4.0.4

        During the testing, both "Selection Action" and "Button Action" are seen in the server log.

        Show
        Joanne Bai added a comment - Cannot reproduce in the following environments: Glimmer revision 21619 Servers: Glassfish v3 and Tomcat 6.0.26 (on Windows XP SP3) Browsers: FF3.6, Safari 4.0.4 During the testing, both "Selection Action" and "Button Action" are seen in the server log.

          People

          • Assignee:
            Unassigned
            Reporter:
            Björn Behrens
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: