• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GWT - navigate one page to another

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic