Multiple Entry Points in GWT -


I'm getting in Google Web Toolkit, and I'm a little confused about entry points in GWT. Google's Docs says:

If you define multiple entry points (interface module loads) within a module, then all those models (and external documents) are ready. If you are loading multiple GWT modules within the same page, the entrypoint of each module will be called for both modules and external documents to be ready. Two modules' entrypoints are not guaranteed to fire at the same time, or in the same order in which their selection script is specified in the host page.

So each page on your website requires an entry point defined for it?

Do you just need an entry point when JavaScript is generated based on your Java classes?

Are you auto-generated - JS definitions in a single * .gwt.xml file?

Edit: Cited source link:

Thanks!

The most direct way to create a GWT app is a page for the whole app, and a top-level ( Defined in one). Each module has a class then all your separate "pages" are sub-squares of the same page, ideally to keep track of state changes using GWT history mechanism that will contain new pages in non-AJAX web app . So if you set things this way, then you will need an entrypoint for your entire app.

The documents you have quoted (link?) What I think, is the use of advanced usage case, where you have more than one module, which you are loading on a page.


Comments