You *do* need to do it like that.
But you also need to write out a history record when you display a page.

In the onModuleLoad, you check the history token and display whichever page
the history token tells you to load.

Have a look at the History() class

Ian

http://examples.roughian.com


2009/3/4 mrfreeze81 <[email protected]>

>
> Hello,
>   I'm trying to navigate from one HTML page to another when a button
> is clicked on the first. I have a button listener added and it's
> inside a panel. Now when I click the button, I want to load a new
> page.
>
>   I do not want to use
>
> <code>
> RootPanle.get().add(new Page1);
> .
> .
> when button_clicked {
>    RootPanel.get().clear;
>    RootPanle.get().add(new Page2);
> }
> </code>
>
> Because if I use this and refresh the page, it loads Page1
>
> How do I go about this?
>
> Thanks,
> Freeze
>
> >
>

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