Modules,HTML,Entrypoint class

1 view
Skip to first unread message

ToXiC

unread,
Nov 29, 2009, 7:27:42 AM11/29/09
to Google Web Toolkit
hi to all ... am new to GWT could i know what each of the above do
(Module,HTML,Entrypoint class),

i want to use a new HTML inside an iframe inside the same
project...could somebody help me with it with some code..and
ofcourse the new HTML should also be able to use the GWT code

Sripathi Krishnan

unread,
Nov 29, 2009, 11:22:46 AM11/29/09
to google-we...@googlegroups.com
A Module is a collection of client side java code. A Module is defined by a .gwt.xml, and it can inherit other modules. The GWT compiler takes a module as its input, and compiles it into javascript code.

A Module has exactly one entry point class. (It is possible to define a module without an Entry Point.. but lets skip it for the moment). The onModuleLoad() method of your entry point class is like the main() method in a standard java program.

Once compiled, the module + entrypoint classs becomes a single .nocache.js file. The .nocache.js file contains the bootstrap code. It loads other js / html files as needed. Note that at this point the java code is useless - everything has been converted into equivalent javascript.

The HTML file is the host for the .nocache.js file. The browser first downloads the html, and then downloads the .nocache.js. Once the .nocache.js loads, the javascript eqivalent of your onModuleLoad gets called. From there on, whatever code you write gets executed.

--Sri


2009/11/29 ToXiC <dez...@gmail.com>

--

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



Reply all
Reply to author
Forward
0 new messages