You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ludovic Orban <lu...@gmail.com> on 2007/10/21 15:22:33 UTC

IndexedParamUrlCodingStrategy behaves strangely when there is no parameter in the URL

Hi,

I've mounted a page like this:
 mount(new IndexedParamUrlCodingStrategy("/page", MyPage.class));

MyPage class has a contructor which accepts PageParameters.

When I try to access the page with any of these URLs:
 http://myserver/page/
or
 http://myserver/page

the PageParameters contains a single parameter "0" / "" which is incorrect
in my opinion.

Surprisingly, when I try:
 http://myserver/page//
or
 http://myserver/page///

then the PageParameters is empty.

I doubt this is expected but am I wrong ?

Thanks.
Ludovic
-- 
View this message in context: http://www.nabble.com/IndexedParamUrlCodingStrategy-behaves-strangely-when-there-is-no-parameter-in-the-URL-tf4666083.html#a13329065
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: IndexedParamUrlCodingStrategy behaves strangely when there is no parameter in the URL

Posted by Ludovic Orban <lu...@gmail.com>.
Done: https://issues.apache.org/jira/browse/WICKET-1092

Thanks for your help.
Ludovic

-- 
View this message in context: http://www.nabble.com/IndexedParamUrlCodingStrategy-behaves-strangely-when-there-is-no-parameter-in-the-URL-tf4666083.html#a13331634
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: IndexedParamUrlCodingStrategy behaves strangely when there is no parameter in the URL

Posted by Igor Vaynberg <ig...@gmail.com>.
please open a bug

-igor


On 10/21/07, Ludovic Orban <lu...@gmail.com> wrote:
>
> Hi,
>
> I've mounted a page like this:
>  mount(new IndexedParamUrlCodingStrategy("/page", MyPage.class));
>
> MyPage class has a contructor which accepts PageParameters.
>
> When I try to access the page with any of these URLs:
>  http://myserver/page/
> or
>  http://myserver/page
>
> the PageParameters contains a single parameter "0" / "" which is incorrect
> in my opinion.
>
> Surprisingly, when I try:
>  http://myserver/page//
> or
>  http://myserver/page///
>
> then the PageParameters is empty.
>
> I doubt this is expected but am I wrong ?
>
> Thanks.
> Ludovic
> --
> View this message in context: http://www.nabble.com/IndexedParamUrlCodingStrategy-behaves-strangely-when-there-is-no-parameter-in-the-URL-tf4666083.html#a13329065
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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