There is definitely something strange going on. It appears that whenever I
use a parameter that has a '/' in it I get strange behavior. I do see the
'/' being encoded properly but still these '/' characters are in the way.
Typical behavior is to see an empty page with the default URL coding
strategy and to get a non-bookmarkable page with the querystring strategy.
As a workaround I am now replacing all '/' characters in the parameter by
something else and then changing it back when using it.

This is not the whole story because even if I apply this hack, the
QueryStringURLCoder strategy still generates a non-bookmarkable page for the
page I want to use. The way out was to use mountBookmarkablePage but I
really don't want to use that.

To reproduce it you would need to mount a page using the
QueryStringURLCoder:

   mount(new QueryStringUrlCodingStrategy("/gpx-from-url",
RemoteTrackMapPage.class));

make the RemoteTrackMapPage have either a default constructor or one with
PageParameters (does not matter which one) and do a
setResponsePage(RemoteTrackMapPage.class, new PageParameters()).

If I have the time I will make an example.

Cheers
  Erik

Reply via email to