I have the following selectionListener attached to a standard button: protected SelectionListener<ButtonEvent> btnSelLst = new SelectionListener<ButtonEvent>() { @Override public void componentSelected(ButtonEvent ce) { ViewTrePuntini w = (ViewTrePuntini)viewBuilder; w.createNewView();
Window window = viewBuilder.retrieveWindow(); window.show(); } }; viewBuilder a filed of the class that contains this button and is a simple external builder i use to build my window. the field is assigned to this class throught a setViewBuilder(ViewBuilder viewBuilder). the methods createNewView() and retrieveWindow() do not do nothing special rather than creating my object and retrieving the window i want to show. When i FIRST click onto my button, i obtain what i want WITHOUT any error. Then, i i close my window and i click a SECOND time onto the same button i obtain the following com.google.gwt.core.client.JavaScriptException which does not make any sense to me: com.google.gwt.core.client.JavaScriptException: (TypeError): parent is null fileName: http://localhost:8888/ lineNumber: 162 stack: (null,[object HTMLDivElement])@http://localhost:8888/:162 @:0 ([object GWTJavaObject],327937)@http://localhost:8888//hosted.html? siipalclient:56 ([object GWTJavaObject])@http://localhost:8888/:14 @:0 ([object GWTJavaObject],327937)@http://localhost:8888//hosted.html? siipalclient:56 ([object GWTJavaObject])@http://localhost:8888/:14 @:0 ([object GWTJavaObject],327937)@http://localhost:8888//hosted.html? siipalclient:56 ([object GWTJavaObject])@http://localhost:8888/:14 @:0 ([object GWTJavaObject],327937)@http://localhost:8888//hosted.html? siipalclient:56 ([object GWTJavaObject])@http://localhost:8888/:14 @:0 ([object GWTJavaObject],327937)@http://localhost:8888//hosted.html? siipalclient:56 ([object GWTJavaObject])@http://localhost:8888/:14 @:0 (null,983110, [object MouseEvent],[object HTMLTableElement],[object GWTJavaObject])@http://localhost:8888//hosted.html?siipalclient:56 ([object MouseEvent])@http://localhost:8888/:107 ((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, 917622, listener)) {__gwt_makeJavaInvoke(3)(null, 983110, evt, curElem, listener);}}}), [object HTMLTableElement],[object Object])@http://localhost:8888/:46 @: 0 (null,106,(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, 917622, listener)) {__gwt_makeJavaInvoke(3)(null, 983110, evt, curElem, listener);}}}),[object HTMLTableElement],[object Object])@http:// localhost:8888//hosted.html?siipalclient:56 ([object MouseEvent])@http://localhost:8888/:65 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 237) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 129) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.goo.... Can anyone please explain me what kind of error can be, since the stack error is totally incomprehensible. I appreciate any idea or slight of help that anyone can give to me. --alex -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.