multiple entry point and HTML size

5 views
Skip to first unread message

orly...@gmail.com

unread,
Nov 29, 2006, 3:31:32 PM11/29/06
to Google Web Toolkit
Hi,
I am currently evaluating GWT as a framework for building a large
portal application.

I really love the concept of GWT but I have some concerns I wish you
can help me with:

1) It seems that GWT is designed for building one big applications (one
module). In my organisation more that 10 people will have to develop in
parallel. How can I split the development?

2) Is it possible to create a package hirerchy under the ....client
package? Supppose I use 50 custom widgets, it's very difficult to
manage them under one package.

3) If I split up my application to different modules - how can I
communicate between the modules using java?

4) Can I add more then one GWT modules to a single HTML page?

5) I noticed that each GWT module compilation creates all the needed
javascript into an HTML page. so it means that if I load multiple
modules to one page a lot of identical JS code is doubled. Is there any
way to define a common part of the script in a global file?

6) Are there any plans for google to have any improvements in this area
in next releases?

Many thanks for the help,
Orly

Sam Taha

unread,
Nov 29, 2006, 10:16:49 PM11/29/06
to Google Web Toolkit

orly...@gmail.com wrote:
> Hi,
> I am currently evaluating GWT as a framework for building a large
> portal application.
>
> I really love the concept of GWT but I have some concerns I wish you
> can help me with:
>
> 1) It seems that GWT is designed for building one big applications (one
> module). In my organisation more that 10 people will have to develop in
> parallel. How can I split the development?
That is really up to you. You can breakup an application into panels,
client vs RPC, or however you like. No different than any other type
of development.

>
> 2) Is it possible to create a package hirerchy under the ....client
> package? Supppose I use 50 custom widgets, it's very difficult to
> manage them under one package.

Again up to you. GWT does not place any limits on what you can do here.

>
> 3) If I split up my application to different modules - how can I
> communicate between the modules using java?

Save the state on the server and pass it into the new module. You can
also save state in javascript objects and when the new module loads it
checks and loads the state into itself.

>
> 4) Can I add more then one GWT modules to a single HTML page?

I have done this with IFRAMES.

>
> 5) I noticed that each GWT module compilation creates all the needed
> javascript into an HTML page. so it means that if I load multiple
> modules to one page a lot of identical JS code is doubled. Is there any
> way to define a common part of the script in a global file?

Yes this has been an issue that has been discussed in other threads.
For larger multi-module applications that is an issue. Bruce Johnson
has made references that dynamic type javascript to JAR loading might
be addressed in the new version of GWT. Search the threads for details.

-Sam

baro...@gmail.com

unread,
Nov 30, 2006, 7:57:40 AM11/30/06
to Google Web Toolkit
We face exactly same problems.

> > 4) Can I add more then one GWT modules to a single HTML page?
>

I've found adding another meta tag per application works.
GWanted and G4Jsf are frameworks doing so and can be learned from.

Another open issues I work on now is debugging on customer site.
I'll be happy for any info on anything.

Cheers,
Lior

Reply all
Reply to author
Forward
0 new messages