Why don't you compile them together ? If you're going to use it on the same
page, then compile it together for that page and then, you wont have
duplicated code.

I personally use a lot of Gwt projects inside my own and this is a non
issue. I really don't see why I wouldn't compile my app and everything it
needs together. Even a gadget library, I would use efficiently code
splitting functionality and just compile everything together. Then when the
user navigate through my library to add widgets to his personal page, I
would load the widget code and show it.

Cheers,

On Wed, Dec 15, 2010 at 12:14 PM, clintjhill <[email protected]> wrote:

> I'll ask the same question in a different way.
>
> There are 2 widgets. The first is for Alerts and the second is for
> Messages.
>
> Both share a library for their services (get/parse JSON data).
> Both share a library for their UI (extending GWT or composites).
> Both are separate GWT projects (code base is separate).
>
> When both are compiled they both receive separate JavaScript for the
> following same things:
>
> 1. GWT core
> 2. library for services
> 3. library for UI
>
> When both are used on a single page you end up with essentially
> duplicated downloads from different JavaScript files. However the
> desire would be that the GWT core, service and UI libraries be
> "shared" and not downloaded twice.
>
> In this example - would GWT be chosen - or is this an example where
> GWT doesn't "fit"?
>
> On Dec 15, 10:05 am, "[email protected]" <[email protected]> wrote:
> > I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
> > expect that you are just the kind of person whose opinion I'm looking
> > for... What say you?
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Christian Goudreau
www.arcbees.com

-- 
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