I’m attempting to get Drag and Drop working in IE9 using the native GWT drag and drop events. (Naturally, it works perfectly fine in all browsers except IE9)
I had a few issues which I ironed out working in Dev mode. However, when outside dev mode it doesn’t work. So I put in this piece of code:
Window.alert("supported DnD: "+com.google.gwt.event.dom.client.DragDropEventBase.isSupported());
It says “True” when running in dev mode, but “False” when not running in dev mode!?
Does anyone know why this is, if GWT 2.5 just does not support DnD in IE9? Or if there is some way I can fix it. It must be theoretically possible since it’s working fine in dev mode.
Ensure that you are running the sample code in the same browser and document mode in Hosted and Production mode. Also keep in mind GWT teams recommendation. https://developers.google.com/web-toolkit/doc/latest/DevGuideIE9
Ensure IE9 is not running under some IE8/IE7 compatibility mode.
For IE7 and IE8 the feature is disabled.
Reference:
GWT Team Test URL: http://gwt-cloudtasks.appspot.com
GWT Team Sample Code: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.java