On Monday, March 28, 2011 2:25:04 PM UTC+2, Adib wrote:
On Mar 26, 1:07 pm, Thomas Broyer <t.br...@gmail.com> wrote:
> On Saturday, March 26, 2011 8:29:04 PM UTC+1, Adib wrote:
>
> > b) is it used by the host page in some bootstrap java script. I
> > find this to be not very likely because there does not seem to be a
> > bootstrap javascript that is not generated from java code.
>
> Yes it is. It's in the *.nocache.js, which either loads the hosted.html (or
> hosted.js, depending on the linker) or the appropriate *.cache.html/js.
> You can compile in --style PRETTY to have a readable version; and you'll
> find the templates in com/google/gwt/core/linker in the gwt-dev.jar
I thought that the *.nocache.js was being generated by the code
server, or when I explicitly compile the code.
It is being generated by DevMode when you launch it (which explains why the -war argument is mandatory even with -noserver), unless it already exists (unless it's older than the gwt-dev.jar, maybe, can't remember the details for sure).
...and by Compiler, of course, unconditionally.
When generated by DevMode, it only contains the code that's necessary to launch DevMode.
In any case, it contains nothing related to your Java code, everything comes from the *.gwt.xml files; with the exception of the permutation IDs (names of the *.cache.html/js files when you compile your app).
Does that mean that if I am using tomcat to host the GWT page I have to run the compile manually every time
I try to run the application.
Fortunately not!
If you can point DevMode's -war to the folder where Tomcat reads the files (exploded web app), then you don't need to compile your app, not even once.
Otherwise, you'll have to compile the app once (or launch DevMode once and then deploy the generated *.nocache.js file)
Really, compile once in -style PRETTY to have a look at what it looks like and how it works.
-- 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment