title: How to deselect a row in GWT CellTable without firing onSelectionChange(...)
body: <p>I have a GWT CellTable with SingleSelectionModel enabled. Once a user clicks a row, the onSelectionChange(...) fires up my Confirmation Dialog which asks the user whether to proceed or not. The issue is when the user clicks 'Cancel', nothing happens but he is not able to select the same row (assume only 1 row in the CellTable) I know I can clear the selection once the user clicks 'Cancel', but that will fires onSelectionChange(..) again and triggers my Confirmation Dialog ..... it's an infinite loop.</p>
  
  <p>The following is my code:</p>
  
  <pre><code>// Add SelectionModel to dTable;
  final SingleSelectionModel&lt;Driver&gt; ssm = new SingleSelectionModel&lt;Driver&gt;();
  dTable.setSelectionModel(ssm);
  ssm.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
  @ Override
  public void onSelectionChange(final SelectionChangeEvent event)
  {
  
  SC.confirm("Do you want to contact the driver?", new BooleanCallback() {
  public void execute(Boolean value) {
  if (value != null &amp;&amp; value) {
  final Driver d = ssm.getSelectedObject();
  dataStoreService.updateDrivers(d._UUID.toString(),tripDate.getValue(), loginInfo.getEmailAddress(),destination.getText().trim(),
  new AsyncCallback&lt;String&gt;() {
  public void onFailure(Throwable caught) {
  
  caught.printStackTrace();
  }
  
  public void onSuccess(String uuid) {
  Window.alert("The driver has been notified. Please keep your reference id: "+uuid);
  }
  });
  dataStoreService.getBookings(loginInfo.getEmailAddress(), new AsyncCallback&lt;List&lt;Booking&gt;&gt;() {
  public void onFailure(Throwable caught) {
  
  caught.printStackTrace();
  }
  
  public void onSuccess(List&lt;Booking&gt; myBookings) {
  ClientUtilities.populateBookings(bookingDataProvider, myBookings);
  }
  });
  } else {
  //clear selection
  //ssm.setSelected(ssm.getSelectedObject(), false);
  
  }
  }
  });
  
  }
  });
  </code></pre>
  
  <p>Can someone tell me how to handle this kind of situation in CellTable? I'm open for any solutions.</p>