That sounds like the right way to go. You can make each of your pages a new class that extends Panel...so you might have an AboutUsPanel, NewsPanel, ProductsPanel, etc...
I would probably put those panels under a new package like com.example.client.ui and then in onModuleLoad() in your entry point, you can make a deck panel and add an instance of each of your classes to it. =) On Mar 22, 8:21 am, Victor Papp <[email protected]> wrote: > Hi, > > I am coming from the .net/C# world, so i am quite new in GWT. > > Now building a 4 page website, where all pages has the same layout, except > the content part. > So, I suppose to use DeckPanel to navigate through pages and exchange > content when user navigates through the site. > > I would like to put code for each of these 4 pages into a different file > (class), and instantiate the classes when building deckpanel. > > Qs: > Is it the right way to go in this case? > Can you point me to some example code of doing this? > > -- > Victor -- 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.
