Hello,
When we create a ListGrid instance this error pops up: '(TypeError): this.completeFields is undefined'.
We call the 'getOrCreateJsObj' from our override of 'com.smartgwt.client.widgets.grid.ListGrid.onInit()' (where we first call the super implementation which goes ok and then call custom code which calls the 'getOrCreateJsObj' at some point). This triggers a change event which in its turn triggers the saveViewState. Not sure if the event was not firing before or that there is something going wrong in the saveViewState now.
The error is slightly different in compiled mode '(TypeError): Cannot call method 'find' of undefined' but seems to come from same source:
I assume both errors are related somehow.
This seems to be unrelated to a browser type and was not noticed on the previous version we where running.
Thanks for having a look.
When we create a ListGrid instance this error pops up: '(TypeError): this.completeFields is undefined'.
We call the 'getOrCreateJsObj' from our override of 'com.smartgwt.client.widgets.grid.ListGrid.onInit()' (where we first call the super implementation which goes ok and then call custom code which calls the 'getOrCreateJsObj' at some point). This triggers a change event which in its turn triggers the saveViewState. Not sure if the event was not firing before or that there is something going wrong in the saveViewState now.
Code:
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) com.smartgwt.client.widgets.grid.ListGrid.getViewState(ListGrid.java) foo.bar.client.util.ViewStateTracker.saveViewState(ViewStateTracker.java:54) foo.bar.client.util.ViewStateTracker.onFieldStateChanged(ViewStateTracker.java:20) com.smartgwt.client.widgets.grid.events.FieldStateChangedEvent.dispatch(FieldStateChangedEvent.java:100) com.smartgwt.client.widgets.grid.events.FieldStateChangedEvent.dispatch(FieldStateChangedEvent.java:1) com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:71) sun.reflect.GeneratedMethodAccessor340.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) com.google.gwt.core.client.impl.Impl.apply(Impl.java) com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) sun.reflect.GeneratedMethodAccessor305.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) com.smartgwt.client.widgets.grid.ListGrid.create(ListGrid.java) com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:386) foo.bar.client.FooListGrid.initMethod(FooListGrid.java:1704)
Code:
Unknown.isc_ListGrid_getGroupState(Unknown Source) Unknown.isc_ListGrid_getViewState(Unknown Source) Unknown.$getViewState(Unknown Source) Unknown.$saveViewState(Unknown Source) Unknown.onFieldStateChanged(Unknown Source) Unknown.$dispatch_91(Unknown Source) Unknown.dispatch_92(Unknown Source) Unknown.dispatch(Unknown Source) Unknown.dispatchEvent_1(Unknown Source) Unknown.$doFire(Unknown Source)
This seems to be unrelated to a browser type and was not noticed on the previous version we where running.
Thanks for having a look.
Comment