You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jorge Rodrigez <mg...@gmail.com> on 2010/06/06 19:01:26 UTC
Parsing of resource locale
Hi,
I observe that if my .css file is named like 'something_ab.css'
then org.apache.wicket.util.resource.locator.ResourceNameIterator confuses
that 'ab' is the locale of the resource.
As a result if I create a ResourceReference(MyPage.class,
"something_ab.css", Locale.US, "mystyle") then the produced URL is :
http://localhost:8080/resources/com.mycompany.HomePage/something_ab_mystyle_ab.css
Is this a bug or it is a known limitation in 1.4 ?
P.S. With 1.5 everything is OK:
http://localhost:8080/wicket/resource/com.mycompany.HomePage/something_ab.css?en_US-mystyle-variation