I am new to GWT and have been experiencing a error when running the DMP in
FireFox and IE. I have been able to establish the error occurs when
attempting to add new properties to JSNI objects. For example an error is
raised on the highlighted line below.
private static final native void ExampleMethod(MyObject myObject)
/*-{
$wnd.MyObject = myObject;
$wnd.MyObject.newFn= function(){};
}-*/;
Failed to create an instance of 'com.myProject.MyObject' via deferred
binding
com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't
support this property or method
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
Strangely this behavior is only seen when using the GWT DMP in FireFox or
IE. When run under Chrome things are fine.
Anyone know what is going on here?
Thanks,
Chris
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/oQYJI1lL6soJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.