On Thu, Oct 9, 2008 at 4:01 PM, David G <[EMAIL PROTECTED]> wrote:

> For a while now I've been trying to find an elegant solution to
> dynamically load widgets/code into a running GWT application, and
> finally I've stumbled across RunAsynch(), which is in the GWT SVN
> repository, but has no indication on when it will finally be release
> as part of GWT. My usecase for this is to develop a GWT application
> that loads widgets/features dynamically at runtime because statically
> compiling all the different features (potentially hundreds) would
> create a huge application to download with features most users may not
> even care for!


HI David,

runAsync() may or may not be a perfect fit, and I'd advise against putting
all your eggs in that basket. If you truly want to load an open-ended set of
things dynamically (like iGoogle), then runAsync() won't really help. It
will only help you load a static script in chunks. It isn't clear yet which
release it will be in, but I would guess the end of Q1 2009 is the earliest
you'd see it.

If you're sure you need an open-ended set of widgets to load dynamically, I
think you could probably create a custom architecture to do this fairly
easily. You'd have one core module and then additional independent modules
(perhaps one per widget) that assume they're loaded only if the core module
is already loaded. The per-widget modules would use overlay types to access
shared functionality from the core module.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to