Scheme-less URLs vs. UrlRenderer

2013-05-07 Thread Jan Riehn

Hello,

I would like to introduce a similar pattern as  fifty-five's SimpleCDN ( 
http://blog.55minutes.com/2012/01/simplecdn-and-the-newly-released-fiftyfive-wicket-32/). 
Thereby I stumbled across the same obstacle as mbrictson:


Wicket does not understand scheme-less URLs that start with //. 
Fixing this would require enhancements to Wicket'sUrl, UrlRenderer, and 
perhaps other classes. You can find a closer description here: 
https://github.com/55minutes/fiftyfive-wicket/issues/35


Is there any advice in how to handle such relatives URLs using wicket-1.5.x?

Regards,

Jan


Re: Scheme-less URLs vs. UrlRenderer

2013-05-07 Thread Martin Grigorov
Hi Jan,

This has been improved in 6.7.0 -
https://issues.apache.org/jira/browse/WICKET-5065
https://github.com/apache/wicket/blob/master/wicket-core/src/test/java/org/apache/wicket/request/cycle/UrlRendererTest.java?source=c#L510-L538
Time to upgrade ;-)


On Tue, May 7, 2013 at 11:23 AM, Jan Riehn jan.ri...@1und1.de wrote:

 Hello,

 I would like to introduce a similar pattern as  fifty-five's SimpleCDN (
 http://blog.55minutes.com/**2012/01/simplecdn-and-the-**
 newly-released-fiftyfive-**wicket-32/http://blog.55minutes.com/2012/01/simplecdn-and-the-newly-released-fiftyfive-wicket-32/).
 Thereby I stumbled across the same obstacle as mbrictson:

 Wicket does not understand scheme-less URLs that start with //. Fixing
 this would require enhancements to Wicket'sUrl, UrlRenderer, and perhaps
 other classes. You can find a closer description here:
 https://github.com/55minutes/**fiftyfive-wicket/issues/35https://github.com/55minutes/fiftyfive-wicket/issues/35

 Is there any advice in how to handle such relatives URLs using
 wicket-1.5.x?

 Regards,

 Jan




-- 
Martin Grigorov
Wicket Training  Consulting
http://jWeekend.com http://jweekend.com/