ggeorg / gwt-mosaic

Automatically exported from code.google.com/p/gwt-mosaic
1 stars 0 forks source link

Can't use PopupPanel anymore #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. new PopupMenu();

What is the expected output? What do you see instead?

In oophm :
2009-05-14 15:20:14,920 [FATAL] Uncaught Exception:
com.google.gwt.core.client.JavaScriptException:
(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR): Node cannot be inserted at the
specified point in the hierarchy code: 3 INDEX_SIZE_ERR: 1
DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3 WRONG_DOCUMENT_ERR: 4
INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6
NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9
INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12
INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15
VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152923139 filename:
http://localhost:8888/umldrawer/hosted.html?umldrawer lineNumber: 8
columnNumber: 0 inner: null data: null at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException(ModuleSpace.java:
62)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:100)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:121)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:501)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:273)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:9
1)
at com.google.gwt.dom.client.Node$.appendChild$(Node.java) at
com.google.gwt.user.client.DOM.appendChild(DOM.java:61) at
com.google.gwt.user.client.ui.SimplePanel.setWidget(SimplePanel.java:142)
at
com.google.gwt.user.client.ui.DecoratedPopupPanel.setWidget(DecoratedPopupPanel.
java:160)
at
com.google.gwt.user.client.ui.DecoratedPopupPanel.<init>(DecoratedPopupPanel.jav
a:133)
at
com.google.gwt.user.client.ui.AbstractDecoratedPopupPanel.<init>(AbstractDecorat
edPopupPanel.java:64)
at org.gwt.mosaic.ui.client.PopupMenu.<init>(PopupMenu.java:41) at
com.objetdirect.gwt.umlapi.client.webinterface.ContextMenu.makeMenu(ContextMenu.
java:120)
at
com.objetdirect.gwt.umlapi.client.webinterface.ContextMenu.<init>(ContextMenu.ja
va:94)
at
com.objetdirect.gwt.umlapi.client.webinterface.ContextMenu.<init>(ContextMenu.ja
va:79)
at
com.objetdirect.gwt.umlapi.client.webinterface.UMLCanvas.dropRightMenu(UMLCanvas
.java:587)
at
com.objetdirect.gwt.umlapi.client.webinterface.UMLCanvas.mouseRightPressed(UMLCa
nvas.java:173)
at
com.objetdirect.gwt.umlapi.client.webinterface.Mouse.press(Mouse.java:46)
at
com.objetdirect.gwt.umlapi.client.webinterface.UMLCanvas$1.mousePressed(UMLCanva
s.java:83)
at
com.objetdirect.gwt.umlapi.client.gfx.TatamiGfxPlatfrom$1.mousePressed(TatamiGfx
Platfrom.java:66)
at
com.objetdirect.tatami.client.gfx.GraphicCanvas.doMouseDown(GraphicCanvas.java:4
03)
at
com.objetdirect.tatami.client.gfx.GraphicCanvas.onBrowserEvent(GraphicCanvas.jav
a:483)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320) at
com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299) at
com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262) at
sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a: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:67) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:146
)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1235
)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:152)
at java.lang.Thread.run(Thread.java:619) 

In compiled version : 
2009-05-14 15:29:30,315 [FATAL] Uncaught Exception:
com.google.gwt.core.client.JavaScriptException:
(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR): Node cannot be inserted at the
specified point in the hierarchy code: 3 INDEX_SIZE_ERR: 1
DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3 WRONG_DOCUMENT_ERR: 4
INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6
NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9
INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12
INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15
VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152923139 filename:
file:///home/florian/w/UMLDrawer/war/umldrawer/4ACB7B03EDEB6FF52B8973EC3BE7B418.
cache.html
lineNumber: 232 columnNumber: 0 inner: null data: null 

What version of the product are you using? On what operating system?
Branch 1.6, r830
GWT Trunk : 5372
Linux Debian

Please provide any additional information below.

Original issue reported on code.google.com by mounier....@gmail.com on 14 May 2009 at 1:27

GoogleCodeExporter commented 9 years ago
Hi,

did you try with 0.2 ?

Kind Regards,
George.

Original comment by georgopo...@gmail.com on 14 May 2009 at 11:19

GoogleCodeExporter commented 9 years ago
Yes i've just tried. I've updated gwt trunk too maybe they changed something in 
the
tree. Don't you have this problem with gwt trunk ?

Original comment by mounier....@gmail.com on 15 May 2009 at 8:12

GoogleCodeExporter commented 9 years ago
Hi,

Sorry SVN structure is confusing people now.

The gwt-mosaic trunk for GWT 1.6 is:

http://gwt-mosaic.googlecode.com/svn/branches/GWT-1.6/

The gwt-mosaic trunk for GWT 1.5.3 is:

http://gwt-mosaic.googlecode.com/svn/trunk

This is because support for GWT 1.5.3 will continue, but I plan to restructure 
SVN
now, since gwt-mosaic-0.2 final is out.

Please let ne know which one do you use. Context menu seems to work in the 
Showcase demo:

http://69.20.122.77/gwt-mosaic-current/Showcase.html#CwListBox

I will check it again with IE6 & IE7.

Kind Regards,
George.

Original comment by georgopo...@gmail.com on 15 May 2009 at 8:27

GoogleCodeExporter commented 9 years ago
Sorry i wasn't clear enough...

I'm using :
$ svn info
Chemin : .
URL : http://gwt-mosaic.googlecode.com/svn/branches/GWT-1.6
Racine du dépôt : http://gwt-mosaic.googlecode.com/svn
UUID du dépôt : 15e68a53-2852-0410-b422-3de62d02f58e
Révision : 830
Type de nœud : répertoire
Tâche programmée : normale
Auteur de la dernière modification : georgopoulos.georgios
Révision de la dernière modification : 830
Date de la dernière modification: 2009-05-10 00:12:25 +0200 (dim 10 mai 2009)

On Iceweasel 3.0.6...
The revision of gwt i'm using is r5372.

I wil try to find a workaround and i appreciate your quick answers :)
PS : If you want to see the problem :
http://gwtuml.googlecode.com/svn/trunk/war/UMLDrawer.html#Drawer just right 
click on
the canvas.

Thanks

Original comment by mounier....@gmail.com on 15 May 2009 at 9:06

GoogleCodeExporter commented 9 years ago
Oh apparently it's google's fault  !
See : http://code.google.com/p/google-web-toolkit/source/detail?r=5374
Sorry to have bothered you,
Once i've updated, i'll tell you if it's ok now...

Original comment by mounier....@gmail.com on 15 May 2009 at 9:14

GoogleCodeExporter commented 9 years ago
Ok gwt5374 fixes that.
Sorry about complaining this to you but this was the only part of my app that 
was broken.
Keep up the good work.

Florian

Original comment by mounier....@gmail.com on 15 May 2009 at 9:23

GoogleCodeExporter commented 9 years ago
Hi, no problem.

Yes, it works very good, see screenshot:

http://imagebin.org/49159

I could run the demo with IE7 and Opera does not  open the context menu at all 
(this
is a browser issue).

By the way your project is very good!

Thanks,
George.

Original comment by georgopo...@gmail.com on 15 May 2009 at 9:33

GoogleCodeExporter commented 9 years ago
Thanks a lot i'm trying !

Original comment by mounier....@gmail.com on 15 May 2009 at 9:54