On Jun 7, 10:14 pm, Rohan <[email protected]> wrote:
> Hello all,
>
> I am new to GWT and just completed the Stock watcher application. I am
> excited about the possibilities of using GWT at my work place but I
> have a few questions regarding structuring a complete website on this
> platform.
>
> How do structure a website having multiple pages?

You shouldn't be thinking in terms of pages ... you're web application
will have one host page and the browser never needs to reload the page
once the bootstrap has launched your application.

>
> For example If I have a website with three web pages doing 3 different
> things:
>
> Page 1.Browsing list of items for sale
> Page 2.Entering/editing an order for an item
> Page 3.Viewing monthly/quartely reports

You have three Activities and they seem to be three Places as well ...
the navigation between them will involve changing the Activities/
Places.

>
> Is there a recommended way to structure this app?
> I did go through 
> thishttps://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizi...
>
> Should I create a module per functionality? or do I, can I or should I
> use single module inheriting three different modules with entry point?

Module structure is independent of the final compiled application ...
you will probably include several modules in your *.gwt.xml file so
adding more of your own isn't a problem.

>
> Also would each module be in its own package?(I did find that its
> recommended I put each module in the root package)
> com.google.gwt.sample
>          PageMain.gwt.xml
> com.google.sample.page1
>         Page1.gwt.xml
> com.google.sample.page2
>         Page2.gwt.xml
> com.google.sample.page3
>         Page3.gwt.xml
> or
> com.google.gwt.sample
>          PageMain.gwt.xml
>          Page1.gwt.xml
>          Page2.gwt.xml
>          Page3.gwt.xml
>
> Also should I have entrypoints in each and then just just redirect
> from one page to another ? If so how will my PageMain.gwt.xml module
> look like ? What entrypoint class will it have and how do I tell it to
> redirect to a particular module?

You want your finished application to use a single EntryPoint, but you
can have others (often useful for development/testing).

>
> I apologize if these questions sound basic but I am having trouble
> visualizing a project structure for website using GWT modules.
>
> May be some one can post an actual multi-page project structure I can
> look at?
>
> Thanks,
> Rohan

-- 
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