The same problem I was having a few days ago...

Well gwt abstracts web applications not as a multiple interlinked
pages but as widgets and panels like a desktop GUI framework. You can
add widgets to panels, switch panels in frames etc...

What I did in my case is somewhat like this

1. Create a class that implements EntryPoint(which you might already
have). Layout everything as you like and put a SimplePanel in the area
where you want the contents to change.

Like this
-------------------------------------------------------------------------
|Logo                   Application Title                 etc |
-------------------------------------------------------------------------
| Navigation Button1 |                                          |
| Navigation Button2 |          SimplePanel              |
| Navigation Button3 |                                          |
| ....
|                                          |
-------------------------------------------------------------------------

2. Create on class for each content that you want to put in
SimplePanel. It should extend Composite. Also, it must initialize and
layout everything in one Grid or Panel or Table in the constructor.
The last line in constructor should be like this

initWidget(thePanelThatContainsEveryThing);

3. On add a clickListener to each navigation button and in that
function:

contentSimplePanel.setWidget(new contentClass1());

This worked for me...

Hope it helps

Omer Akhter

On Jan 9, 10:18 am, "Sahil Dave" <[email protected]> wrote:
> Hi all,
>
> i am new to GWT. I have gone thru the gwt's online tutorial and have
> understood how everything works. But 1 thing that i am not able to
> understand is, if i have multiple interlinked pages in my web application
> then, do i need to create multiple classes and do all those classes need to
> implement the EntryPoint interface.
> I am using Eclipse & the basic project contains just a single class & its
> associated .gwt.xml file
>
> can someone explain this.??
>
> --
> Sahil
--~--~---------~--~----~------------~-------~--~----~
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