You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Girts Ziemelis <gi...@gmail.com> on 2012/03/18 18:55:11 UTC
LocaleFirstMapper in 1.5 and statefull home page
I am doing the conversion from 1.4 to 1.5.5 and at the same time trying
to start using LocaleFirstMapper and CustomHomeMapper from wicket
examples. Everything works nicely except, I have a statefull home page
and seems CustomHomeMapper does not handle this case. Page renders fine,
but Ajax requests do not work. I think the reason is, because
CustomHomeMapper does not add the version number to the link, so the
link stays /en, instead of /en?0 like in case, if CustomHomeMapper is
not used (home page link is /?0).
Any easy solutions to fix this, before I start debugging wicket 1.5
request handling, trying to understand how things work?
BTW, nice work on 1.5 wicket team. Thanks :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: LocaleFirstMapper in 1.5 and statefull home page
Posted by Girts Ziemelis <gi...@gmail.com>.
Works great!
Thank you very much ! :)
On 2012-03-19 10:33, Martin Grigorov wrote:
> Hi,
>
> I just touched CustomHomeMapper in Wicket 6.0 to support what you
> need. I think this way it is more usable in real life.
> See http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=cabc1bee6a5e3e43e58c9f4c7f8b5cda401c558a
> The new code of this class at:
> http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=blob;f=wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/CustomHomeMapper.java
>
> Have fun!
>
> On Sun, Mar 18, 2012 at 7:55 PM, Girts Ziemelis
> <gi...@gmail.com> wrote:
>> I am doing the conversion from 1.4 to 1.5.5 and at the same time trying to
>> start using LocaleFirstMapper and CustomHomeMapper from wicket examples.
>> Everything works nicely except, I have a statefull home page and seems
>> CustomHomeMapper does not handle this case. Page renders fine, but Ajax
>> requests do not work. I think the reason is, because CustomHomeMapper does
>> not add the version number to the link, so the link stays /en, instead of
>> /en?0 like in case, if CustomHomeMapper is not used (home page link is /?0).
>>
>> Any easy solutions to fix this, before I start debugging wicket 1.5 request
>> handling, trying to understand how things work?
>>
>> BTW, nice work on 1.5 wicket team. Thanks :)
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
Re: LocaleFirstMapper in 1.5 and statefull home page
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
I just touched CustomHomeMapper in Wicket 6.0 to support what you
need. I think this way it is more usable in real life.
See http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=cabc1bee6a5e3e43e58c9f4c7f8b5cda401c558a
The new code of this class at:
http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=blob;f=wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/CustomHomeMapper.java
Have fun!
On Sun, Mar 18, 2012 at 7:55 PM, Girts Ziemelis
<gi...@gmail.com> wrote:
> I am doing the conversion from 1.4 to 1.5.5 and at the same time trying to
> start using LocaleFirstMapper and CustomHomeMapper from wicket examples.
> Everything works nicely except, I have a statefull home page and seems
> CustomHomeMapper does not handle this case. Page renders fine, but Ajax
> requests do not work. I think the reason is, because CustomHomeMapper does
> not add the version number to the link, so the link stays /en, instead of
> /en?0 like in case, if CustomHomeMapper is not used (home page link is /?0).
>
> Any easy solutions to fix this, before I start debugging wicket 1.5 request
> handling, trying to understand how things work?
>
> BTW, nice work on 1.5 wicket team. Thanks :)
>
>
>
>
>
> ---------------------------------------------------------------------
> 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