Thanks! Yeah that makes sense. cheers, Lakshmi
On Fri, Apr 24, 2009 at 7:17 PM, Vitali Lovich <[email protected]> wrote: > No. When you hit back, you're browser is navigating to a new page so of > course you lose all your current Javascript state (otherwise, you could > potentially leak your state to other sites which at best might corrupt them > & at worst allow attackers to steal your visitor's data). > > > On Fri, Apr 24, 2009 at 6:07 PM, Lakshmi <[email protected]> wrote: > >> >> Hi, >> >> I have been dabbling with GWT 1.6 for a few days now and I have a >> problem with the History mechanism. >> >> I wrote a small application which consists of 4 hyperlinks and a >> panel. The content of the panel changes depending on which hyperlink >> is clicked. Three of these are GWT defined hyperlinks which were >> created this way: new Hyperlink(" Home","Home"); The fourth is a html >> link containing href navigates the user to some external application. >> The history mechanism works properly when I navigate between the GWT >> hyperlinks. onHistoryChanged is called whenever they are clicked or >> when I use the 'Back' button between their navigations. >> >> However when I click on the html hyperlink and then the 'Back' button, >> I see that my application's url is loaded (http://localhost:8080/ >> KDDBrowser.html#Home <http://localhost:8080/%0AKDDBrowser.html#Home>), >> but onHistoryChanged is not called. Instead >> onModuleLoad is called. This, I think, means that a new instance of >> the module is now serving my request because of which the state that I >> had stored in my earlier instance of the module is now lost :( >> Since it is the same browser instance I had expected GWT to route all >> requests coming from the same browser instance to the same module >> instance (and hence call 'onHistoryChanged' instead of 'onModuleLoad') >> Is there no way of maintaining state when navigating away from a GWT >> application and back? >> >> thanks, >> Lakshmi >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
