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

        Björn Behrens created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 2.0-Beta [ 10231 ]
        Assignee Joanne Bai [ joanne_bai ]
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0-Alpha3 [ 10032 ]
        Fix Version/s 2.0-Beta [ 10231 ]
        Resolution Fixed [ 1 ]
        Assignee Joanne Bai [ joanne_bai ]
        Ken Fyten made changes -
        Fix Version/s 2.0.0 [ 10230 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: