jonas sabu
4 Apr 2011, 6:19 AM
Hi all,
I am using a TreeGrid with a Grid View that i wanted to refresh every time i change a row. To do that i found the GridView.refresh() method that does exactly what i want. Only problem is when i do the refresh with any tree node parent expanded, next time I try to collapse that parent by double clicking it it gives this error:
ERROR: Uncaught exception escaped. com.google.gwt.core.client.JavaScriptException: (TypeError): this.insertBefore is not a function
fileName: http://127.0.0.1:8888
lineNumber: 26
stack: ([object HTMLImageElement],[object HTMLImageElement])@http://127.0.0.1:8888:26
@:0
(null,14614558,[object MouseEvent],[object HTMLDivElement],[object GWTJavaObject])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:157
((function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888:29
@:0
(null,65563,(function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:41
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.invokeNativeObject(ModuleSpace.java:264)
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:188)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
ERROR: Uncaught exception escaped. com.google.gwt.core.client.JavaScriptException: (TypeError): this.insertBefore is not a function
fileName: http://127.0.0.1:8888
lineNumber: 26
stack: ([object HTMLImageElement],[object HTMLImageElement])@http://127.0.0.1:8888:26
@:0
(null,14614558,[object MouseEvent],[object HTMLDivElement],[object GWTJavaObject])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:157
((function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888:29
@:0
(null,65563,(function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:41
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.invokeNativeObject(ModuleSpace.java:264)
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:188)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
And it doesnt change the arrow in the selected row to expand:
25474
Thanks in advance hope anyone can help me. I'm running ext gwt 2.2.0.
I am using a TreeGrid with a Grid View that i wanted to refresh every time i change a row. To do that i found the GridView.refresh() method that does exactly what i want. Only problem is when i do the refresh with any tree node parent expanded, next time I try to collapse that parent by double clicking it it gives this error:
ERROR: Uncaught exception escaped. com.google.gwt.core.client.JavaScriptException: (TypeError): this.insertBefore is not a function
fileName: http://127.0.0.1:8888
lineNumber: 26
stack: ([object HTMLImageElement],[object HTMLImageElement])@http://127.0.0.1:8888:26
@:0
(null,14614558,[object MouseEvent],[object HTMLDivElement],[object GWTJavaObject])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:157
((function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888:29
@:0
(null,65563,(function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:41
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.invokeNativeObject(ModuleSpace.java:264)
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:188)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
ERROR: Uncaught exception escaped. com.google.gwt.core.client.JavaScriptException: (TypeError): this.insertBefore is not a function
fileName: http://127.0.0.1:8888
lineNumber: 26
stack: ([object HTMLImageElement],[object HTMLImageElement])@http://127.0.0.1:8888:26
@:0
(null,14614558,[object MouseEvent],[object HTMLDivElement],[object GWTJavaObject])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:157
((function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888:29
@:0
(null,65563,(function (evt) {var listener, curElem = this;while (curElem && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 14549025, listener)) {__gwt_makeJavaInvoke(3)(null, 14614558, evt, curElem, listener);}}}),[object HTMLDivElement],[object Object])@http://127.0.0.1:8888/harvesterui/hosted.html?harvesterui:56
([object MouseEvent])@http://127.0.0.1:8888:41
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.invokeNativeObject(ModuleSpace.java:264)
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:188)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
And it doesnt change the arrow in the selected row to expand:
25474
Thanks in advance hope anyone can help me. I'm running ext gwt 2.2.0.