Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 626641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:26:27+00:00 2026-05-13T19:26:27+00:00

I have a page called Orders and a page called OrderDetails. As described in

  • 0

I have a page called Orders and a page called OrderDetails. As described in the excellent MVP tutorial I’m working with History (with a central ValueChangeListener) and an “event bus” HandlerManager.

I have a handler registered for the event that someone clicks on an order, which basically creates the OrderDetailPresenter, passes in the order ID (which is contained in the ShowOrderDetailEvent), and then calls History.newItem("orderDetails").

This has a couple major disadvantages: This newly created History step does NOT know which order ID was passed in. So for example, if someone bookmarks the order details page (or goes back then forward in their browser), they’ll get an empty page with no order details.

So my question is: Should I instead do something like History.newItem("orderDetails?id="+id), and then parse the history token in my value change listener? If so, is there a best practice, an API, or library for parsing and formatting arguments into a string in this way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:26:27+00:00Added an answer on May 13, 2026 at 7:26 pm

    Yes, that’s what you should do. There is, so far as I know, no library for making this easier.

    A bit of advice, though: if at all possible, you should avoid using a scheme that requires you to use percent escapes in your history item string. The reason is that what location.hash returns when location.href ends in, say #%3C@%40 varies from browser to browser. For example, Chrome returns #%3C@%40; Firefox returns #<@@. Setting location.hash can have similar browser-specific effects.

    GWT’s History token mechanism relies on location.hash and doesn’t normalize this difference in browser behavior. The end result is that if you use something that requires percent escapes, you will get urls that can’t be shared across browsers – this is an issue if on some other page you want to generate links that jump to a particular spot within your GWT app, or if you expect users to share URLs that link to within your GWT app. (or when your user installs Chrome, imports their bookmarks from Firefox that pointed to particular spots inside your webapp, and suddenly the bookmarks don’t work as they did before)

    For paranoia, I’d avoid putting any ?, #, &, %, <, or > characters in your history token string. However, strings like orderDetails/oid=12313378 should be fine, and cross-browser.

    (Edited to clarify that the issue I’m talking about is dealing with having identical URLs work in multiple different browsers, not of having the history token method work at all in each of the various browsers)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page called /add that you can add a Dog on and
I have a page called Error.php. Variables are usually passed to it using the
I have a page called send.email.php which sends an email - pretty simple stuff
I have a page called ..hi i get this error when visiting the page.
I have a page called send.email.php which sends an email - pretty simple stuff
My project is about a school admin I have a page called : createClass.php,
I have an html page called search.html which contains sliders, they work perfectly in
I have a master page called SampleMaster.master and this page contains a Repeater control
I have a php page called form.php. When you go to this page it
I have a page containing a control called PhoneInfo.ascx. PhoneInfo is dynamically created using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.