Hi,
you should read
http://wicket.apache.org/guide/guide/resources.html#resources_3 to
understand the 'extra noise'.
If you really don't want a version identifier appended, you can use
NoOpResourceCachingStrategy. See IResourceSettings#setCachingStrategy().
Regards
Sven
On 07/26/2014 12:51 AM, Lorne Malvo wrote:
I have a problem adding CSS resources to Wicket pages in Wicket 6.
In my page class, I override renderHead() like this:
@Override
public void renderHead(IHeaderResponse response) {
response.render( CssHeaderItem.forReference( new CssResourceReference(
MyFantasticPage.class, "MyFantasticPage.css" ) ) );
}
However, in the resulting HTML code, the link to the CSS file is rendered by
Wicket like this:
<link rel="stylesheet" type="text/css"
href="./wicket/resource/com.myDomain.pages.MyFantasticPage/MyFantasticPage-ver-1406325551266.css"
/>
The link is correct except for this portion: "-ver-1406325551266"
How can I prevent Wicket from adding this extra noise? This is happening in
my entire application for every single page. I've tried a few variations on
my renderHead() implementation, but no luck.
Thank you very much!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Problem-adding-CSS-resources-in-Wicket-6-tp4666749.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]