Every forum I have seen where someone asks this someone inevitably
asks why, so let me head off this question by explaining. I have run
into this in a few different situations, one when trying to integrate
GWT "portlets" into Liferay(Java portlet). The second situation is in
trying to create a dynamic binding of sorts. I have been trying to
figure out a way to create a GWT portal where you could install
modules and they could be added and removed dynamically without having
to recompile the core, creating something similar to iGoogle or
Liferay in a GWT/J2EE implementation.
I don't know if I'll answer your question but we working on a main GWT-
module with pluggable sub-modules. Each sub-modules is an ui-
independant part of the whole application. To avoid interferences,
each module loads into its own iframe. I wrote a messaging system that
allow each module to communicate with each other (JSON serialization,
auto-discovery of other modules...).
Olivier
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
On Mar 31, 12:12 pm, Sripathi Krishnan <sripathikrish...@gmail.com>
wrote:
> GWT's architecture is orthogonal to your requirement of dynamic module
> loading / pluggable sub-modules, so whatever solution you find will be a
> hack and not maintainable.
>
> One of the core philosophies of GWT - *If something can be done at compile
> time, do it*. The key benefit of such a philosophy is performance. GWT
> scores over a lot of other frameworks because of its monolithic,
> closed-world compile. Any framework for dynamic module loading needs to
> defer a few operations to runtime, and that is a cost GWT core is unwilling
> to pay (thats what I understand).
>
> Having said that, you can still achieve what you want. Define an API (in
> terms of javascript methods) for your module, and use GWT
> Exporter<http://code.google.com/p/gwt-exporter/>to export the methods.
> That way, your GWT modules can inter-operate with
> hand-written javascript or with other pre-compiled GWT code. You can also
> dynamically add new modules to a page if you wish to do so. Any
> shared/common will however get download multiple times as part of each
> modules nocache.js + guid.cache.html, and there is nothing you can do about
> it.
>
> --Sri
>
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>