Size of code download in GWT

2008-12-06 Thread funwithgwt

Hi,

I have a question about the size of downloaded code for GWT
applications. I notice that the Modlename.js file that is included in
the ModuleName.html file is quite small. I am looking at 5K approx.
However the generated html files, which are generated on a per browser
basis are quite large -on the order of 500K. I am assuming that only
the portion of code in 500K file that is required based on the
dependencies starting from Module.java file are downloaded from
server. For example if the there are 1000 widgets in the generated
code but only one widget is instantiated then only the code for that
one widget is downloaded to the browser. Is this correct?

-FunWithGWT

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



URL that is launced in Hosted Mode

2008-12-06 Thread funwithgwt

Hi,

Question 1:
My URL in hosted mode looks like this:
http://localhost:/com.mywebsite.MyBlog/MyBlog.html
I would like the application to be launced in hosted mode so that it
looks like this:
http://localhost:/MyBlog.html

I have multiple modules. When I deploy these modules I will be
deploying all of them to ROOT in Tomcat. I have links from one module
to another. For example I have a link in MyBlog.html to MyBlog2.html

This link navigation must work in a consistent manner in the Hosted
and Deployed mode.
Hence I want the Hosted mode to be launched as:
http://localhost:/MyBlog.html
or
http://localhost:/MyBlog2.html

Question 2:
When I compile MyBlog-compile.cmd to create the output required for
deployment it copies all the html files MyBlog.html, MyBlog2.html to
the target directory. It creates com.mywebsite.MyBlog.nocache.js, but
does not create com.mywebsite.MyBlog2.nocache.js

The MyBlog.html includes  com.mywebsite.MyBlog.nocache.js and
MyBlog2.html includes the com.mywebsite.MyBlog2.nocache.js

This now causes MyBlog2.html to not work because of the missing
javascript file.

I have a feeling I have something confused here in terms of how this
is supposed to be tested or deployed .

Thanks,
   FunWithGWT

-Umesh

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---