You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Johan Compagner <jc...@gmail.com> on 2007/05/11 17:58:32 UTC

relative url generation

in ServletWebRequest: public String getRelativePathPrefixToWicketHandler()
we create the relative prefix path based on the current request path (and
some other attributes if set)


my chat log:

[17:52 (11-05 )] jcompagner: the url i go to is a bookmarkable one like
http://localhost:8080/servoy-webclient/solutions/solution/servoy_sample_crm
[17:52 (11-05 )] jcompagner: then the page is created
[17:52 (11-05 )] jcompagner: but it is redirected to!
[17:52 (11-05 )] jcompagner: and we make the url depending of the current
url
[17:52 (11-05 )] jcompagner: of the request
[17:52 (11-05 )] jcompagner: but that is wrong
[17:53 (11-05 )] jcompagner: it should be of the url where the page is shown
with
[17:53 (11-05 )] jcompagner: so if it is a redirect
[17:53 (11-05 )] jcompagner: then the redirect url should be used to
generate the urls


so this is the request url:
http://localhost:8080/servoy-webclient/solutions/solution/servoy_sample_crm

setResponsePage(new MyPage)
setRedirect(true)

that results in the page url:
http://localhost:8080/servoy-webclient/?wicket:interface=:0:49:5::


but all the links in the page are pased on the first request url (so
../../resources/xxxx)
but that doesn't work for the redirect url!

johan