| Author |
GWT - navigate one page to another
|
Anand Sivathanu
Ranch Hand
Joined: Jun 25, 2010
Posts: 41
|
|
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.
Regards,
Anand Sivathanu
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 7602
|
|
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.
|
[Donate a pint, save a life!] [How to ask questions]
|
 |
 |
|
|
subject: GWT - navigate one page to another
|
|
|