Re: [1.4.3] RequestUtils.toAbsolutePath("") skips the last value

2009-11-29 Thread smallufo
Hi , I opened WICKET-2586
https://issues.apache.org/jira/browse/WICKET-2586

But it is reported
"invalid" ...
This is intended ... but I still don't know why ...

2009/11/30 Erik van Oosten 

> Hello Smallufo,
>
> Please open an issue on the Wicket jira so that the development team can
> track this bug.
>
> Regards,
>Erik.
>
>
>
> smallufo wrote:
>
>> The code is following :
>>
>> WebApplication :
>> mountBookmarkablePage("/TestPage" , TestPage.class);
>>
>> TestPage.html :
>> url = 
>>
>> TestPage.java :
>> final String url = RequestUtils.toAbsolutePath("");
>> add(new Label("url" , Model.of(url)));
>>
>> If I open
>> http://foobar:8080/quickstart/app/TestPage
>> it shows  http://foobar:8080/quickstart/app/TestPage  , correct
>>
>> if I open http://foobar:8080/quickstart/app/TestPage/a/b/
>> it shows : http://foobar:8080/quickstart/app/TestPage/a/b/ , correct
>>
>> BUT ,
>> if I open http://foobar:8080/quickstart/app/TestPage/a/b
>> it shows : http://foobar:8080/quickstart/app/TestPage/a , WRONG
>>
>>
>>
>
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [1.4.3] RequestUtils.toAbsolutePath("") skips the last value

2009-11-29 Thread Erik van Oosten

Hello Smallufo,

Please open an issue on the Wicket jira so that the development team can 
track this bug.


Regards,
Erik.


smallufo wrote:

The code is following :

WebApplication :
mountBookmarkablePage("/TestPage" , TestPage.class);

TestPage.html :
url = 

TestPage.java :
final String url = RequestUtils.toAbsolutePath("");
add(new Label("url" , Model.of(url)));

If I open
http://foobar:8080/quickstart/app/TestPage
it shows  http://foobar:8080/quickstart/app/TestPage  , correct

if I open http://foobar:8080/quickstart/app/TestPage/a/b/
it shows : http://foobar:8080/quickstart/app/TestPage/a/b/ , correct

BUT ,
if I open http://foobar:8080/quickstart/app/TestPage/a/b
it shows : http://foobar:8080/quickstart/app/TestPage/a , WRONG

  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



[1.4.3] RequestUtils.toAbsolutePath("") skips the last value

2009-11-20 Thread smallufo
The code is following :

WebApplication :
mountBookmarkablePage("/TestPage" , TestPage.class);

TestPage.html :
url = 

TestPage.java :
final String url = RequestUtils.toAbsolutePath("");
add(new Label("url" , Model.of(url)));

If I open
http://foobar:8080/quickstart/app/TestPage
it shows  http://foobar:8080/quickstart/app/TestPage  , correct

if I open http://foobar:8080/quickstart/app/TestPage/a/b/
it shows : http://foobar:8080/quickstart/app/TestPage/a/b/ , correct

BUT ,
if I open http://foobar:8080/quickstart/app/TestPage/a/b
it shows : http://foobar:8080/quickstart/app/TestPage/a , WRONG