You can use gwt history manager...
*add a listener:*
History.addValueChangeHandler(new ValueChangeHandler<String>() {
public void onValueChange(ValueChangeEvent<String> event) {
String section = History.getToken().trim();
... place new panel, or whatever like that ...
}
});
*when user clicks a link or button you can call:*
History.newItem(section);
This would work with back-forward browser buttons.
[]
ERS
On Sun, Jul 29, 2012 at 3:59 PM, Dennis Haupt <[email protected]>wrote:
> please read some beginner tutorials.
> page switch:
> RootPanel.get("content").add(page1());
> RootPanel.get("content").clear();
> RootPanel.get("content").add(page2());
>
> Am 29.07.2012 19:47, schrieb nessrinovitta:
> > How does this work exactly ?? As I understood in the .HTML page I define
> > the divs I need and then form each Ui java class I use the methode
> > RootPanel.get("content").add(Widget());
> > Is this true ?, Does anyone have an example ??
>
>
> --
>
> --
> 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.
>
>
--
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.