Thanks for the info, Martin.


Martin Grigorov-4 wrote
> Hi,
> 
> There is no way provided by Wicket itself.
> You can setup custom root IRequestMapper that fixes this before passing
> the
> Request to be handled by Wicket's default mappers.
> "Fixing" 'ibehaviorlistener" to "IBehaviorListener" will be easy. But
> "inkmylink" (a random component id in your app) to  "InkMyLink" won't be
> that easy.
> 
> Martin Grigorov
> Wicket Training and Consulting
> 
> 
> On Tue, May 6, 2014 at 3:52 PM, Ian Marshall <

> IanMarshall.UK@

> >wrote:
> 
>> Hello,
>>
>> I have a standard stateless link with an on-click handler.
>>
>> Does anyone know of a way to either allow case-insensitivity for URLs of
>> components and their listeners or else for the application to render
>> these
>> in all lower case? (This is because web requests by bots can be made to a
>> link listener all in lower case after the page version number:
>> "/main/MyPage?-2.ilinklistener-lnkmylink".)
>>
>> The HTML and code for my link follows:
>>
>> HTML
>> ----
>>
>>
>> Java code
>> ---------
>> public class MyPageBase extends org.apache.wicket.markup.html.WebPage
>> {
>>   [...]
>>
>>   StatelessLink lnkMyLink = new StatelessLink("lnkMyLink")
>>   {
>>     private static final long serialVersionUID = 1L;
>>
>>     @Override
>>     public void onClick()
>>     {
>>       [...]
>>     }
>>   };
>>   add(lnkMyLink);
>> }
>>
>>
>> This results in the following HTML being sent to a web browser:
>>
>>
>>
>>
>> I have discovered that the web site is crawled by a bot that uses URLs
>> all
>> in lower case after the page version number. So the web server produces
>> an
>> error of the form:
>>
>> /main/PageHome?-2.iLinkListener-lnkMyLink 404 77ms 0kb Mozilla/5.0
>> (Windows
>> NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 module=default
>> version=51-vaxmk2od
>>
>> 92.18.236.103 - - [06/May/2014:03:50:44 -0700] "GET
>> /main/MyPage?-2.ilinklistener-lnkmylink HTTP/1.1" 404 263 - "Mozilla/5.0
>> (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0" "[URI]"
>> ms=78
>> cpu_ms=43 cpm_usd=0.000029 app_engine_release=1.9.4
>> instance=00c61b117c8b6bedc38e2c09ba2915c08a572f
>>
>> org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper
>> processListener: Unknown listener interface 'ilinklistener'
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Can-the-ILinkListener-on-click-URL-be-made-case-insensitive-tp4665709.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 

> users-unsubscribe@.apache

>> For additional commands, e-mail: 

> users-help@.apache

>>
>>



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Can-the-ILinkListener-on-click-URL-be-made-case-insensitive-tp4665709p4665731.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to