my dog learned polymorphism
The moose likes GWT and the fly likes GWT - navigate one page to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT - navigate one page to another" Watch "GWT - navigate one page to another" New topic

GWT - navigate one page to another

Anand Sivathanu
Ranch Hand

Joined: Jun 25, 2010
Posts: 76
Hi All,

I am new to gwt. I have run some sample gwt applications. My doubt is how I need to navigate from one page to another. Eg:- After authentication, a new page should be shown.But in gwt from my understanding each project having individual page.Please let me know.

Anand Sivathanu

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10836

One way of doing it.

Whenever the user makes the 1st request, check if he is logged in.
If not direct to the login page. After successfully logging in, redirect to the "home" page.
If logged in, redirect to the "home" page.
So you need to have, at a minimum, one login page and one home page (which has the actual GWT generated JS in it)

After logging in, you can use something like GWT History Mechanism to let the user navigate between views.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: GWT - navigate one page to another
It's not a secret anymore!