Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

GWT - navigate one page to another

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.

Anand Sivathanu

Posts: 11445
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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.
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic