Re: Multiple GWT modules and dependencies

2009-07-15 Thread Paul Robinson

If you can use GWT trunk or wait for GWT 2.0, then what you're
describing sounds very much like code splitting and the associated story
of your compile:
http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting

Paul


Jan Ehrhardt wrote:
> Hi,
>
> I'd like to create a page, which requires different GWT applications,
> but which is dependent to the logged in user. So it doesn't make any
> sence to load one GWT module, which containes hundreds of GWT
> applications, even when only two are required.
> I know, that I can compile each application on it's own and than
> dynamically load the required apps, but this points me to a dependency
> problem. If I use HashMap in one application, it will be compiled as
> other dependencies too into the application's nocache-file and loaded
> at runtime, but if I'm using HashMap in a second application, it will
> be compiled a second time and the resulting JavaScript will be loaded
> into the browser a second time.
>
> This behaviour will make it impossible to create any common libraries,
> which are used by all applications.
>
> A simple example would be the following:
> I've got an application, which shows some content to the user, so a
> normal user will get a slim version of this application. If someone
> also has admin rights, he'll be able to open an admin console and now
> the trouble starts. The way I would like to go is, the slim version
> will be loaded and a further tab for administration will be displayed,
> but until the admin user opens this tab, the part of the application,
> which contains the adminstration *functionality* shouldn't be loaded.
> This would allow me to serve the admin user the slim application as
> fast as all other users and serve the admin application on demand. The
> problem I have is that I want the admin application to use compiled
> code allready loaded with the slim version.
>
> E. g. in Dojo JavaScript framework this problem is solved by using
> dynamic loading of different JavaScript files.
>
> Is there any way to enable GWT for doing something similar?
>
> Jan Ehrhardt
>
>
>

--~--~-~--~~~---~--~~
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-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Multiple GWT modules and dependencies

2009-07-15 Thread Jan Ehrhardt
Hi,

I'd like to create a page, which requires different GWT applications, but
which is dependent to the logged in user. So it doesn't make any sence to
load one GWT module, which containes hundreds of GWT applications, even when
only two are required.
I know, that I can compile each application on it's own and than dynamically
load the required apps, but this points me to a dependency problem. If I use
HashMap in one application, it will be compiled as other dependencies too
into the application's nocache-file and loaded at runtime, but if I'm using
HashMap in a second application, it will be compiled a second time and the
resulting JavaScript will be loaded into the browser a second time.

This behaviour will make it impossible to create any common libraries, which
are used by all applications.

A simple example would be the following:
I've got an application, which shows some content to the user, so a normal
user will get a slim version of this application. If someone also has admin
rights, he'll be able to open an admin console and now the trouble starts.
The way I would like to go is, the slim version will be loaded and a further
tab for administration will be displayed, but until the admin user opens
this tab, the part of the application, which contains the adminstration *
functionality* shouldn't be loaded. This would allow me to serve the admin
user the slim application as fast as all other users and serve the admin
application on demand. The problem I have is that I want the admin
application to use compiled code allready loaded with the slim version.

E. g. in Dojo JavaScript framework this problem is solved by using dynamic
loading of different JavaScript files.

Is there any way to enable GWT for doing something similar?

Jan Ehrhardt

--~--~-~--~~~---~--~~
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-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---