Hi, What are you trying to achieve with this code ? You should not be using the Element.removeFromParent directly since the FlexTable widget depends on it to be consistent.
The form.removeFromParent can be used, but in this case the form widget is not attached to your document so you don't need to call the removeFromParent() at all. David On Thu, May 30, 2013 at 1:33 AM, Phanindra Vuppalapati < phanindr...@gmail.com> wrote: > Below is my code > > FlexTable form = new FlexTable(); > > form.getElement().removeFromParent(); > form.removeFromParent(); > > > > > > > 16:27:32.490 [ERROR] [gipp.map.MapViewer] Uncaught exception escaped > > com.google.gwt.core.client.JavaScriptException: (TypeError): > this.removeChild is not a function > fileName: http://127.0.0.1:9090 > lineNumber: 98 > 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.GeneratedMethodAccessor206.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > 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:1668) > 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(Unknown Source) > > Can anyone help me on this Please. I will be very thankful. I tried to > remove child nodes of the element and tried to remove element from parent. > But it didn't work. Please very urgent > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.