Hi Vishant,

It is true that each module/application can have only a single entry
point, but this does make sense.  Think of this as the equivalent of a
main() method in a normal Java application.  Though the application
has only one entry point you can use conditional logic in there based
on factors such as the history token to perform different actions.

Alternatively you could write different modules for each page.

We have written a moderately large application that has 2 modules: the
normal Viewer interface (used by regular users), and the Admin
interface (used by project admins).  Each interface has a large number
of UI components, for example the Viewer interface has a navigation
tree panel, a search panel, a details panel, plus dialogs for changing
basic user settings.  The Admin area contains different configuration
screens, accessed via a navigation tree, to configure different facets
of the application.  We decide which of the panels should be displayed
by using the history functionality, and we initialize the correct
configuration panel in application entry by inspecting the history
token.  This allows bookmarks and the browser history to work
correctly,

Using different modules is generally better where you have chunks of
functionality that can be obviously partitioned, but it is impossible
to directly pass objects between modules, although you could fetch
objects from the server via RPC based on information in the session I
guess.

Hope this helps,
Martin

On Nov 5, 8:52 am, Jack <[email protected]> wrote:
> Hello GWT Team,
>
> We are planning to develop tiny ERP in Google Web Toolkit. But we have
> come thorugh the one of the restriction of GWT as it only allows to
> have one Entry Point in Application. I have searched on Internet but
> could not breatk through.
>
> Please explain a simple case where i have a multiple pages like login,
> home, diffrent pages on each menu cliecked. How to handle such case..?
>   1) Creating a Page as a Widget and load a widget on each click on
> pagel
>                                  OR
>   2) Create a different modules on each page and load a module on each
> click . (If so please let us know an sample code to load a module and
> pass a data securely to other module).
>
> We have a team setup for PHP & Java Struts / Spring Framework, i have
> gone through the many ebooks and article but could not find the
> appropriate content. please suggest some online links or material.
>
> Thank you in advance. Waiting for your response.
>
> Regards,
> Vishant Shah
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to