You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by shayy <sh...@gmail.com> on 2012/01/24 08:37:18 UTC

Problems with requests to MountPath and optional parameters

Hi, 

I'm trying to use @MountPath in conjunction with Wicket 1.5 but I'm
encountering an issue. 

I've configured the following mount path on one of my page classes: 
@MountPath("/items/#{itemName}/#{itemNumber}/#{itemDate}/#{subItemName}") 

Requesting the following URL results in a 404 when using Firefox or IE and
is in constant "loading" mode when using Chrome: 
host/items/itemName/381/2011-12-22T21:08:32.960+0200/sub.item:221 

But requesting the same URL with a trailing "/" works. 

I am thinking it might be a problem with the special characters, as the
request succeeds with no trailing "/" if I substitue all values to simple
strings: 
host/items/itemName/381/itemDate/subitemName 

Am I misconfiguring the mount path in any way? 
Could it be that the special characters are the cause of this behavior? 

Thanks, 
Shay

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-requests-to-MountPath-and-optional-parameters-tp4323095p4323095.html
Sent from the Users forum 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: Problems with requests to MountPath and optional parameters

Posted by kamiseq <ka...@gmail.com>.
maybe try date as milseconds (as long)?

pozdrawiam
Paweł Kamiński

kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________

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


Re: Problems with requests to MountPath and optional parameters

Posted by shayy <sh...@gmail.com>.
Although I must use the "+" since it's in my code logic, I've tried it
without it and it still fails.

Any suggestions?

Thanks.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-requests-to-MountPath-and-optional-parameters-tp4323095p4323572.html
Sent from the Users forum 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: Problems with requests to MountPath and optional parameters

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

On Tue, Jan 24, 2012 at 9:37 AM, shayy <sh...@gmail.com> wrote:
> Hi,
>
> I'm trying to use @MountPath in conjunction with Wicket 1.5 but I'm
> encountering an issue.
>
> I've configured the following mount path on one of my page classes:
> @MountPath("/items/#{itemName}/#{itemNumber}/#{itemDate}/#{subItemName}")
>
> Requesting the following URL results in a 404 when using Firefox or IE and
> is in constant "loading" mode when using Chrome:
> host/items/itemName/381/2011-12-22T21:08:32.960+0200/sub.item:221

I think the + sign causes this. Try without it.

>
> But requesting the same URL with a trailing "/" works.
>
> I am thinking it might be a problem with the special characters, as the
> request succeeds with no trailing "/" if I substitue all values to simple
> strings:
> host/items/itemName/381/itemDate/subitemName
>
> Am I misconfiguring the mount path in any way?
> Could it be that the special characters are the cause of this behavior?
>
> Thanks,
> Shay
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-requests-to-MountPath-and-optional-parameters-tp4323095p4323095.html
> Sent from the Users forum 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
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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