You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by smallufo <sm...@gmail.com> on 2012/02/12 07:57:45 UTC
changes behavior from 1.4.15 to 1.4.19 ?
<wicket:link><img src="../icons/facebookLogin_300_35.png" border="0"/>
</wicket:link>
This code works fine in wicket 1.4.15 , and will generate a url like this :
http://foobar.com/app/resources/foobar.login.LoginPanel/null/icons/facebookLogin_300_35.png
The "null" in URL seems represents ".." in the resource path.
But when I upgrade to 1.4.19 , the URL becomes :
http://foobar.com/app/resources/icons/facebookLogin_300_35.png
It is broken !!!
Why ? And ... how to fix it ? (without hardcode the path in java code)
Re: changes behavior from 1.4.15 to 1.4.19 ?
Posted by smallufo <sm...@gmail.com>.
sorry for disturbance
after adding the 2 lines in Application , it's solved.
getResourceSettings().setParentFolderPlaceholder("$up$");
getResourceSettings().addResourceFolder(getServletContext().getContextPath
());
2012/2/12 smallufo <sm...@gmail.com>
> <wicket:link><img src="../icons/facebookLogin_300_35.png" border="0"/>
> </wicket:link>
>
> This code works fine in wicket 1.4.15 , and will generate a url like this :
>
>
> http://foobar.com/app/resources/foobar.login.LoginPanel/null/icons/facebookLogin_300_35.png
>
> The "null" in URL seems represents ".." in the resource path.
>
> But when I upgrade to 1.4.19 , the URL becomes :
>
> http://foobar.com/app/resources/icons/facebookLogin_300_35.png
>
>
> It is broken !!!
>
> Why ? And ... how to fix it ? (without hardcode the path in java code)
>
>
>