Alexey, I develop application on Vaadin (
vaadin.com). It uses GWT for
rendering and I have same problems like you. A modular application
uses plugins or bundles (in term of OGSi in dynamic way. It means If
you use plugin then necessary resourses avilavble only for usage time
(no any static injections in main application). If you try to attach
GWT-widget implemented by plugin to main application then you have two
choises. First one is to compile plugin-widget in static way and store
compiled java-script together with main module (current state of GWT).
In this case will be impossible to add plugins dynamically. Second one
is to add support into GWT compiller like I decribed already (not
implemented by GWT yet). Then you can use precomilled GWT widgets like
OSGi-bundles.
Now I try to add support of this logic in my project and if it will be
successed then I share my results. May be they will be accepted by
google.