Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT - navigate one page to another

 
Anand Sivathanu
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic