google-code-export / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

DateField with FieldListener fails in onChange #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using DateField with a FieldListener you get the following
error which looks like a String versus Date problem which is what
the onChange(...) method is expecting.

com.google.gwt.dev.shell.HostedModeException: Calling method 'onChange': JS
value of type JavaScript object, expected string
    at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:207)
    at
com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
57)
    at
com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:119)
    at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:150)
    at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:293)
    at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:196)

Original issue reported on code.google.com by intern...@gmail.com on 28 Aug 2007 at 1:29

GoogleCodeExporter commented 9 years ago
Are you running from SVN? The signature FieldListener#onChange is now 

void onChange(Field field, Object newVal, Object oldVal);

Original comment by sanjiv.j...@gmail.com on 28 Aug 2007 at 1:47

GoogleCodeExporter commented 9 years ago
Ah, no, running from downloaded .jar file whilst waiting for the official 0.9.2.

Original comment by intern...@gmail.com on 29 Aug 2007 at 4:53

GoogleCodeExporter commented 9 years ago
Already fixed in SVN.

Original comment by sanjiv.j...@gmail.com on 29 Aug 2007 at 5:19