I have problems with
SmartGWT 2.0 and GWT 2.0.1
in development mode. I get a
when I execute code like the test case below.
I checked it with different environments, and these are the results:
o SmartGWT 1.3 and GWT 1.7 hosted + compiled: works, "done" is logged
o SmartGWT 2.0 and GWT 2.0.1 compiled: works, "done" is logged
o SmartGWT 2.0 and GWT 2.0.1 dev: I get the exception below
The exception stack trace is
Any ideas?
SmartGWT 2.0 and GWT 2.0.1
in development mode. I get a
Code:
com.google.gwt.core.client.JavaScriptException: (null): null
I checked it with different environments, and these are the results:
o SmartGWT 1.3 and GWT 1.7 hosted + compiled: works, "done" is logged
o SmartGWT 2.0 and GWT 2.0.1 compiled: works, "done" is logged
o SmartGWT 2.0 and GWT 2.0.1 dev: I get the exception below
Code:
public void onModuleLoad() { final ListGridRecord [] records = new ListGridRecord[1]; records[0] = new ListGridRecord(); records[0].setAttribute("myAttribute", "attributeValue"); DataSource ds = new DataSource() { @Override protected Object transformRequest(DSRequest dsRequest) { DSOperationType opType = dsRequest.getOperationType(); if (DSOperationType.FETCH == opType) { return records; } else { // just for test return null; } } }; ds.setClientOnly(true); DataSourceTextField name = new DataSourceTextField("myAttribute"); ds.setFields(name); TextItem nameItem = new TextItem("myAttribute"); ListGridField nameGridField = new ListGridField("myAttribute"); nameGridField.setEditorType(nameItem); ListGrid listGrid = new ListGrid(); listGrid.setDataSource(ds); listGrid.setFields(nameGridField); listGrid.fetchData(null, new DSCallback() { public void execute(DSResponse response, Object rawData, DSRequest request) { Log.debug("done"); } }); }
Code:
com.google.gwt.core.client.JavaScriptException: (null): null at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.widgets.grid.ListGrid.fetchData(ListGrid.java) at com.ect.gwt.vcb.client.VisualCallflowBuilder.onModuleLoad(VisualCallflowBuilder.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:369) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:619)
Comment