Tips and notes for GWT coding

Using setCapture()

JavaDoc? "Sets mouse-capture on the given element. This element will directly receive all mouse events until releaseCapture(Element) is called on it."

So in practice this is convenience method for building drag'n drop etc. BUT there is a small difference how this works in different rendering engines.

In IE you don't _directly_ receive your mouse events. You also need to explicitly sink those mouse events in element you want to set capturing all events. In all other rendering engines only setting capture is enough.

destroying widgets is a slow

Detaching widgets is an expensive operation. This can be seen for example in Table: loading first view is fairly fast, but scrolling very slow if you have real widget inside. In table we might consider to make "lazy unloading".

Opening new windows is buggy in hosted mode

At least on mac opened windows don't respect toolbar, width etc misc instructions that are quite often used in traditional web apps. Seems to work fine in compiled code.