multiple entry point and HTML size

已查看 5 次
跳至第一个未读帖子

orly...@gmail.com

未读,
2006年11月29日 15:31:322006/11/29
收件人 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

未读,
2006年11月29日 22:16:492006/11/29
收件人 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

未读,
2006年11月30日 07:57:402006/11/30
收件人 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

回复全部
回复作者
转发
0 个新帖子