I don't know if this is related to WICKET-1599 :

https://issues.apache.org/jira/browse/WICKET-1599



2009/6/7 smallufo <[email protected]>

> This is my code :
>
> String s1 =
> RequestUtils.toAbsolutePath(getRequestCycle().urlFor(CurrentPage.class ,
> pps).toString());
> System.out.println("s1 = " + s1);
>
> Link link = new AjaxFallbackLink("link")
> {
>   @Override
>   public void onClick(AjaxRequestTarget target)
>   {
>     final String s2 =
> RequestUtils.toAbsolutePath(getRequestCycle().urlFor(CurrentPage.class ,
> pps).toString());
>     System.out.println("s2 = " + s2);
>   }
> };
>
> This is the result :
>
> s1 = http://foo.bar:8080/app/CurrentPage
> s2 = CurrentPage/foo/bar/para/meters
>
> String s1 is what I need , it has "http://foo.bar:8080/app/"; in the head
> of the string.
> But why s2 don't have host and context name (app) in the head ?
> It is inconsistent ....
> Is it possible to make it consistent with s1 ?
>
>
>

Reply via email to