GWT 2.5.1 & 2.6.1
SmartGWT release 4.1
SmartClient Version: v9.1p_2014-03-05/LGPL Development Only (built 2014-03-05) & SmartClient Version: v9.1p_2014-05-15/LGPL Development Only (built 2014-05-15)
IE 10 standards mode
We have a ListGrid that we alternate 2 different datasources depending on the mode that a user selects. For a while now this has been working flawlessly. Recently we decided to allow the user to edit one of the fields that is displayed only in one of the modes.
To enable this we are now calling setAlwaysShowEditors(Boolean.TRUE) on our ListGrid. This causes the fields to be editable, as expected, but causes an exception to occur when the user switches back to the other mode. As far as the listgrid is concerned, switching the mode causes the datasource to be changed and a fetch to occur.
Any idea why enabling editing makes the grid fail when trying to change the datasource? The stacktrace seems to indicate that the datasource we are passing in is null, but I have confirmed that it is not.
Thanks,
Pat
00:06:28.553 [ERROR] Uncaught Exception
com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) @com.smartgwt.client.widgets.grid.ListGrid::setDataSourceJS(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)([JavaScript object(2132), JavaScript object(8558)]): Unable to get property 'getItems' of undefined or null reference
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
at com.google.gwt.event.logical.shared.SelectionEvent.fire(SelectionEvent.java:43)
at com.google.gwt.user.client.ui.TabBar.selectTab(TabBar.java:512)
at com.google.gwt.user.client.ui.TabBar.selectTab(TabBar.java:480)
at com.google.gwt.user.client.ui.TabBar.selectTabByTabWidget(TabBar.java:663)
at com.google.gwt.user.client.ui.TabBar.access$0(TabBar.java:658)
at com.google.gwt.user.client.ui.TabBar$ClickDelegatePanel.onBrowserEvent(TabBar.java:159)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.grid.ListGrid::setDataSourceJS(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)([JavaScript object(2132), JavaScript object(8558)]): Unable to get property 'getItems' of undefined or null reference
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.widgets.grid.ListGrid.setDataSourceJS(ListGrid.java)
at com.smartgwt.client.widgets.grid.ListGrid.setDataSource(ListGrid.java:17593)
SmartGWT release 4.1
SmartClient Version: v9.1p_2014-03-05/LGPL Development Only (built 2014-03-05) & SmartClient Version: v9.1p_2014-05-15/LGPL Development Only (built 2014-05-15)
IE 10 standards mode
We have a ListGrid that we alternate 2 different datasources depending on the mode that a user selects. For a while now this has been working flawlessly. Recently we decided to allow the user to edit one of the fields that is displayed only in one of the modes.
To enable this we are now calling setAlwaysShowEditors(Boolean.TRUE) on our ListGrid. This causes the fields to be editable, as expected, but causes an exception to occur when the user switches back to the other mode. As far as the listgrid is concerned, switching the mode causes the datasource to be changed and a fetch to occur.
Any idea why enabling editing makes the grid fail when trying to change the datasource? The stacktrace seems to indicate that the datasource we are passing in is null, but I have confirmed that it is not.
Thanks,
Pat
00:06:28.553 [ERROR] Uncaught Exception
com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) @com.smartgwt.client.widgets.grid.ListGrid::setDataSourceJS(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)([JavaScript object(2132), JavaScript object(8558)]): Unable to get property 'getItems' of undefined or null reference
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
at com.google.gwt.event.logical.shared.SelectionEvent.fire(SelectionEvent.java:43)
at com.google.gwt.user.client.ui.TabBar.selectTab(TabBar.java:512)
at com.google.gwt.user.client.ui.TabBar.selectTab(TabBar.java:480)
at com.google.gwt.user.client.ui.TabBar.selectTabByTabWidget(TabBar.java:663)
at com.google.gwt.user.client.ui.TabBar.access$0(TabBar.java:658)
at com.google.gwt.user.client.ui.TabBar$ClickDelegatePanel.onBrowserEvent(TabBar.java:159)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.grid.ListGrid::setDataSourceJS(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)([JavaScript object(2132), JavaScript object(8558)]): Unable to get property 'getItems' of undefined or null reference
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.widgets.grid.ListGrid.setDataSourceJS(ListGrid.java)
at com.smartgwt.client.widgets.grid.ListGrid.setDataSource(ListGrid.java:17593)
Comment