Tuesday, August 11, 2015

GWT Showcase Sample App CustomDataGrid FieldUpdate.update doesn't fire "change" event of SelectionCell. Is this a BUG?

Can someone confirm this? 

In the GWT Showcase sample app (I'm using GWT 2.6) the update method of the FieldUpdater for the categoryColumn in CwCustomDataGrid never fires. This is a SelectionCell which should fire "change" events and it never does. I tested it in SuperDev Mode. Development environment = Windows 7, Eclipse, GWT 2.6.0, tested in Chrome, IE and Firefox. I never get the alert (below) when changing the category column selection values. 


categoryColumn.setFieldUpdater(new FieldUpdater<ContactInfo, String>() {
      @Override
      public void update(int index, ContactInfo object, String value) {
    Window.alert("update()!");
        for (Category category : categories) {
          if (category.getDisplayName().equals(value)) {
            object.setCategory(category);
          }
        }
        ContactDatabase.get().refreshDisplays();
      }
    });

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment