On 28 août, 13:54, Simon Shaw <[email protected]> wrote:
> I have developed a simple web application with 4 pages that uses
> Hyperlinks and ValueChangeHandler to move from page to page and store
> history.
> Although I want to keep the history functionality in this application
> I do not want to show the token in the address bar of the browser.
That's simply not possible (well, in IE6 and IE7, it would be, but not
on other browsers; at least with the current History implementation,
which is what 99.9% of developers using GWT actually want)
> Also, and I am pretty sure this is connected, I would like to prevent
> users from entering the site from any location other than the default
> landing page.
Oh, this is easy: in your onModuleLoad, instead of firing the current
history token, just do nothing with History (apart from registering
your ValueChangeHandler) or explicitly "move" to the landing page
(History.newItem("landing-page"))
Er, could you explain why you don't want the "bookmarkable" part of
the history feature? i'm having a hard time understanding your issue
with it...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---