Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with EditorExitEvent - String vs. LinkedMap

    In my application, I am adding a custom handler to deal with the EditorExit event:

    ListGridField field = new ListGridField(.....);
    field.setType(ListGridFieldType.TEXT);
    field.addEditorExitHandler(new EditorExitHandler() {
    public void onEditorExit(final EditorExitEvent event) {
    String editedValue = event.getNewValue().toString();

    callDMI(editedValue);
    }
    }

    callDMI basically invokes a custom operation against the ListGrid's backend DataSource object, passing the editedValue -- which is supposed to be a String value.

    This works fine if the event was fired due to a modify to an existing value that's not an empty string. If the previous value was an empty string, the value passed to the DMI class somehow got converted to an Apache common LinkedMap, resulting in type cast error.

    Another data-point / mystery: this does not happen in debug mode (with ?gwt.codesvr=127.0.0.1:<port>), only in production mode.

    Version: SmartGwtee 3.0
Working...
X