You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Nishant Neeraj <ni...@gmail.com> on 2010/02/20 11:07:51 UTC
URL Encoding strategy
Hi,
I wanted to apply URL encoding strategy to application context root but I
cant mount empty string because it throws exception at start-up.
Is there a work around to this?
Regards
Nishant
WIcket mounting on root (Was: URL Encoding strategy)
Posted by Erik van Oosten <e....@grons.nl>.
Hi Nishant,
Its live: http://blog.jteam.nl/2010/02/24/wicket-root-mounts/
Regards,
Erik.
Nishant Neeraj schreef:
> Thanks Erik. I guess, I'll go with sevlet filter approach for now.
>
> However, I'll be looking for your blog post. If possible, post the link to
> the article in this thread when you're done.
>
> Thanks again.
> Nishant
>
> On Sat, Feb 20, 2010 at 6:40 PM, Erik van Oosten <e....@grons.nl>wrote:
>
>
>> Hi Nishant,
>>
>> This is tricky stuff.
>>
>> Here is some information:
>> http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
>> Another approach is to do redirects from a servlet filter.
>>
>> If you have a couple of days of patience I'll have finished a blog article
>> on it, with example code to make it a lot easier from within Wicket.
>>
>> Regards,
>> Erik.
>>
>>
>> Op 20-02-10 11:07, Nishant Neeraj wrote:
>>
>>
>>> Hi,
>>>
>>> I wanted to apply URL encoding strategy to application context root but I
>>> cant mount empty string because it throws exception at start-up.
>>> Is there a work around to this?
>>>
>>> Regards
>>> Nishant
>>>
--
Send from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: URL Encoding strategy
Posted by Nishant Neeraj <ni...@gmail.com>.
Thanks Erik. I guess, I'll go with sevlet filter approach for now.
However, I'll be looking for your blog post. If possible, post the link to
the article in this thread when you're done.
Thanks again.
Nishant
On Sat, Feb 20, 2010 at 6:40 PM, Erik van Oosten <e....@grons.nl>wrote:
> Hi Nishant,
>
> This is tricky stuff.
>
> Here is some information:
> http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
> Another approach is to do redirects from a servlet filter.
>
> If you have a couple of days of patience I'll have finished a blog article
> on it, with example code to make it a lot easier from within Wicket.
>
> Regards,
> Erik.
>
>
> Op 20-02-10 11:07, Nishant Neeraj wrote:
>
>> Hi,
>>
>> I wanted to apply URL encoding strategy to application context root but I
>> cant mount empty string because it throws exception at start-up.
>> Is there a work around to this?
>>
>> Regards
>> Nishant
>>
>>
>
> --
> Posted from my SMTP compliant software.
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: URL Encoding strategy
Posted by Alex Objelean <al...@yahoo.com>.
Issue created: https://issues.apache.org/jira/browse/WICKET-2830
Alex
Erik van Oosten wrote:
>
> Only Wicket comitters can do that. Please make a jira issue that refers
> to this discussion, for example with a nabble URL.
>
> Regards,
> Erik.
>
>
> Alex Objelean wrote:
>> I see. But at least could you make the encode method non-final? This
>> would
>> ensure that there is no need for a patch. I just would reuse your code
>> for
>> root mounting.
>>
>> Until wicket-1.5 will be released and adopted, we still have to have a
>> solution for root mounting in wicket-1.4.
>>
>> Thanks!
>> Alex
>>
>>
>> Erik van Oosten wrote:
>>
>>> Hi Alex,
>>>
>>> I am not sure it is a good idea to include this code in Wicket core (or
>>> extension). It will make Wicket's URL handling even more nontransparent
>>> then it already is. For well tested applications you can use the
>>> workaround, but I'd hate to maintain this code for each and every corner
>>> case, especially knowing that Wicket 1.5 will thoroughly improve URL
>>> handling.
>>>
>>> Regards,
>>> Erik.
>>>
>>>
>>> Alex Objelean wrote:
>>>
>>>> Hi Eric!
>>>> I've noticed that you have already posted the solution on your blog
>>>> (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for
>>>> sharing
>>>> it with us.
>>>>
>>>> One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
>>>> method is still final even in wicket-1.4.7 if there is a good use-case
>>>> for
>>>> extending it?
>>>>
>>>> Also, maybe you could add this contribution to wicket core or at least
>>>> wicket-extension?
>>>>
>>>> Thank you!
>>>> Alex Objelean
>>>>
>>>>
>>>> Erik van Oosten wrote:
>>>>
>>>>
>>>>> Hi Nishant,
>>>>>
>>>>> This is tricky stuff.
>>>>>
>>>>> Here is some information:
>>>>> http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
>>>>> Another approach is to do redirects from a servlet filter.
>>>>>
>>>>> If you have a couple of days of patience I'll have finished a blog
>>>>> article on it, with example code to make it a lot easier from within
>>>>> Wicket.
>>>>>
>>>>> Regards,
>>>>> Erik.
>>>>>
>>>>> Op 20-02-10 11:07, Nishant Neeraj wrote:
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I wanted to apply URL encoding strategy to application context root
>>>>>> but
>>>>>> I
>>>>>> cant mount empty string because it throws exception at start-up.
>>>>>> Is there a work around to this?
>>>>>>
>>>>>> Regards
>>>>>> Nishant
>>>>>>
>
> --
> Sent from my SMTP compliant software
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/URL-Encoding-strategy-tp27664942p28190842.html
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: URL Encoding strategy
Posted by Erik van Oosten <e....@grons.nl>.
Only Wicket comitters can do that. Please make a jira issue that refers
to this discussion, for example with a nabble URL.
Regards,
Erik.
Alex Objelean wrote:
> I see. But at least could you make the encode method non-final? This would
> ensure that there is no need for a patch. I just would reuse your code for
> root mounting.
>
> Until wicket-1.5 will be released and adopted, we still have to have a
> solution for root mounting in wicket-1.4.
>
> Thanks!
> Alex
>
>
> Erik van Oosten wrote:
>
>> Hi Alex,
>>
>> I am not sure it is a good idea to include this code in Wicket core (or
>> extension). It will make Wicket's URL handling even more nontransparent
>> then it already is. For well tested applications you can use the
>> workaround, but I'd hate to maintain this code for each and every corner
>> case, especially knowing that Wicket 1.5 will thoroughly improve URL
>> handling.
>>
>> Regards,
>> Erik.
>>
>>
>> Alex Objelean wrote:
>>
>>> Hi Eric!
>>> I've noticed that you have already posted the solution on your blog
>>> (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for
>>> sharing
>>> it with us.
>>>
>>> One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
>>> method is still final even in wicket-1.4.7 if there is a good use-case
>>> for
>>> extending it?
>>>
>>> Also, maybe you could add this contribution to wicket core or at least
>>> wicket-extension?
>>>
>>> Thank you!
>>> Alex Objelean
>>>
>>>
>>> Erik van Oosten wrote:
>>>
>>>
>>>> Hi Nishant,
>>>>
>>>> This is tricky stuff.
>>>>
>>>> Here is some information:
>>>> http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
>>>> Another approach is to do redirects from a servlet filter.
>>>>
>>>> If you have a couple of days of patience I'll have finished a blog
>>>> article on it, with example code to make it a lot easier from within
>>>> Wicket.
>>>>
>>>> Regards,
>>>> Erik.
>>>>
>>>> Op 20-02-10 11:07, Nishant Neeraj wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> I wanted to apply URL encoding strategy to application context root but
>>>>> I
>>>>> cant mount empty string because it throws exception at start-up.
>>>>> Is there a work around to this?
>>>>>
>>>>> Regards
>>>>> Nishant
>>>>>
--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: URL Encoding strategy
Posted by Alex Objelean <al...@yahoo.com>.
I see. But at least could you make the encode method non-final? This would
ensure that there is no need for a patch. I just would reuse your code for
root mounting.
Until wicket-1.5 will be released and adopted, we still have to have a
solution for root mounting in wicket-1.4.
Thanks!
Alex
Erik van Oosten wrote:
>
> Hi Alex,
>
> I am not sure it is a good idea to include this code in Wicket core (or
> extension). It will make Wicket's URL handling even more nontransparent
> then it already is. For well tested applications you can use the
> workaround, but I'd hate to maintain this code for each and every corner
> case, especially knowing that Wicket 1.5 will thoroughly improve URL
> handling.
>
> Regards,
> Erik.
>
>
> Alex Objelean wrote:
>> Hi Eric!
>> I've noticed that you have already posted the solution on your blog
>> (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for
>> sharing
>> it with us.
>>
>> One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
>> method is still final even in wicket-1.4.7 if there is a good use-case
>> for
>> extending it?
>>
>> Also, maybe you could add this contribution to wicket core or at least
>> wicket-extension?
>>
>> Thank you!
>> Alex Objelean
>>
>>
>> Erik van Oosten wrote:
>>
>>> Hi Nishant,
>>>
>>> This is tricky stuff.
>>>
>>> Here is some information:
>>> http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
>>> Another approach is to do redirects from a servlet filter.
>>>
>>> If you have a couple of days of patience I'll have finished a blog
>>> article on it, with example code to make it a lot easier from within
>>> Wicket.
>>>
>>> Regards,
>>> Erik.
>>>
>>> Op 20-02-10 11:07, Nishant Neeraj wrote:
>>>
>>>> Hi,
>>>>
>>>> I wanted to apply URL encoding strategy to application context root but
>>>> I
>>>> cant mount empty string because it throws exception at start-up.
>>>> Is there a work around to this?
>>>>
>>>> Regards
>>>> Nishant
>>>>
>>>>
>
> --
> Sent from my SMTP compliant software
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/URL-Encoding-strategy-tp27664942p28189285.html
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: URL Encoding strategy
Posted by Erik van Oosten <e....@grons.nl>.
Hi Alex,
I am not sure it is a good idea to include this code in Wicket core (or
extension). It will make Wicket's URL handling even more nontransparent
then it already is. For well tested applications you can use the
workaround, but I'd hate to maintain this code for each and every corner
case, especially knowing that Wicket 1.5 will thoroughly improve URL
handling.
Regards,
Erik.
Alex Objelean wrote:
> Hi Eric!
> I've noticed that you have already posted the solution on your blog
> (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for sharing
> it with us.
>
> One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
> method is still final even in wicket-1.4.7 if there is a good use-case for
> extending it?
>
> Also, maybe you could add this contribution to wicket core or at least
> wicket-extension?
>
> Thank you!
> Alex Objelean
>
>
> Erik van Oosten wrote:
>
>> Hi Nishant,
>>
>> This is tricky stuff.
>>
>> Here is some information:
>> http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
>> Another approach is to do redirects from a servlet filter.
>>
>> If you have a couple of days of patience I'll have finished a blog
>> article on it, with example code to make it a lot easier from within
>> Wicket.
>>
>> Regards,
>> Erik.
>>
>> Op 20-02-10 11:07, Nishant Neeraj wrote:
>>
>>> Hi,
>>>
>>> I wanted to apply URL encoding strategy to application context root but I
>>> cant mount empty string because it throws exception at start-up.
>>> Is there a work around to this?
>>>
>>> Regards
>>> Nishant
>>>
>>>
--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: URL Encoding strategy
Posted by Alex Objelean <al...@yahoo.com>.
Hi Eric!
I've noticed that you have already posted the solution on your blog
(http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for sharing
it with us.
One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
method is still final even in wicket-1.4.7 if there is a good use-case for
extending it?
Also, maybe you could add this contribution to wicket core or at least
wicket-extension?
Thank you!
Alex Objelean
Erik van Oosten wrote:
>
> Hi Nishant,
>
> This is tricky stuff.
>
> Here is some information:
> http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
> Another approach is to do redirects from a servlet filter.
>
> If you have a couple of days of patience I'll have finished a blog
> article on it, with example code to make it a lot easier from within
> Wicket.
>
> Regards,
> Erik.
>
> Op 20-02-10 11:07, Nishant Neeraj wrote:
>> Hi,
>>
>> I wanted to apply URL encoding strategy to application context root but I
>> cant mount empty string because it throws exception at start-up.
>> Is there a work around to this?
>>
>> Regards
>> Nishant
>>
>
> --
> Posted from my SMTP compliant software.
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/URL-Encoding-strategy-tp27664942p28169418.html
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: URL Encoding strategy
Posted by Erik van Oosten <e....@grons.nl>.
Hi Nishant,
This is tricky stuff.
Here is some information:
http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
Another approach is to do redirects from a servlet filter.
If you have a couple of days of patience I'll have finished a blog
article on it, with example code to make it a lot easier from within Wicket.
Regards,
Erik.
Op 20-02-10 11:07, Nishant Neeraj wrote:
> Hi,
>
> I wanted to apply URL encoding strategy to application context root but I
> cant mount empty string because it throws exception at start-up.
> Is there a work around to this?
>
> Regards
> Nishant
>
--
Posted from my SMTP compliant software.
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org