My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3590: GWT Window.Location.gerParameter() is always null, .gerParameterMap() always empty.
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by Jamie.Co...@sas.com, Oct 2, 2015
Probably just not "getting it" for how this is supposed to work...

Affected Version: At least 2.11+, haven't tested earlier or master.

What steps will reproduce the problem?
1. Craft a URL with parameters to send to a plugin, and send the browser there.
$GERRIT_URL/#/x/Plugin/?key=value

2. In GWT code in the plugin, add "Window.alert(Window.Location.getParameterMap().toString());"
"Window.alert(Window.Location.getParameter("key");"

3. Note that the first alert only shows [] as the string... in other words, an empty map.  The 2nd alert shows 'null'.

What is the expected output? What do you see instead?

Expected:  [key=value] (or whatever you're supposed to see with a valid map) for the first alert, 'value' for the 2nd.

Seen: [], null

Please provide any additional information below.

I want to do it this way rather than a REST call as I want the URL parameters to modify what is seen on the GWT page, not just return data as in a REST call.

Sign in to add a comment

Powered by Google Project Hosting