SV: getRequestUrl behavior difference between page call and ajax call

2008-08-04 Thread Wilhelmsen Tor Iver
- when loading the page from the browser, the URL is returned including the page parameters; Yes, that would be a GET-method request. - when updating through AJAX, the URL is returned without the page parameters. AAJAX requests are often POST-method. In POST requests the parameters are

getRequestUrl behavior difference between page call and ajax call

2008-07-30 Thread Antoine van Wel
Hi, When calling (WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getRequestURL() on a page with page parameters, I'm seeing different results: - when loading the page from the browser, the URL is returned including the page parameters; - when updating through AJAX, the URL

Re: getRequestUrl behavior difference between page call and ajax call

2008-07-30 Thread Antoine van Wel
by the way, this is the case for url coding strategies which use /par/ such as the default BookmarkablePageRequestTargetUrlCodingStrategy IMHO these parameters should be stripped but perhaps not in the getRequest method; any method available which does just this? On Wed, Jul 30, 2008 at 11:52