Gwt page refresh issue

2010-10-25 Thread sam
i created a Gwt prototype,entry point is LOGIN page,once login is success it will direct to the home page.The problem is after login successfully if i click on the refresh button of the Browser its directing to the login page.so that i have to enter the login details again. please suggest me to

Re: Gwt page refresh issue

2010-10-25 Thread Jeff Schwartz
Refresh reloads your javascript and runs it from the top so if the first thing your app does is display the login in screen then that is what will be displayed when the user refreshes the page. Use history and HistoryListener to control your user's navigation. A common patter is the following:

Re: Gwt page refresh issue

2010-10-25 Thread Jeff Schwartz
BTW I glanced over the whole login thing but really login is authentication which is going to require you hit the server to validate the user. There are a lot of good resources on the web which you can google that will show how to do this using a servlet and request session id. What is critical in