I am extending the GXT Window widget, to build a custom dialog, which works just fine. I'm extending Window, because Dialog really only supports a set of predefined buttons, and I want a resusable Widget class.

I'd like to use UiBinder, and define the layout in the xml file, instead of creating it all through Java code. Does not seem possible though, because the UiBinder support is in the GWT Composite class (subclass of Widget), but the GXT 3.0 Window widget is a subclass of Widget (not Composite). So I can't write a statement like:

initWidget (uiBinder.createAndBindUi (this)); //initWidget inherits from Composite, not Widget

It's not the end of the world, but would be cleaner if I could use UiBinder to define the layout.