Re: Wicket 1.5.0 and ResourceReferences
As far as I understand, both suggested solutions work on the entire application, right? Is there no way to define a particular resource caching strategy for a particular resource or set of resources, e.g. set a resource strategy for all javascript resources, but leave everything else default? A On Tue, Sep 27, 2011 at 5:40 PM, Igor Vaynberg wrote: > switch to QueryStringWithVersionResourceCachingStrategy, it does not > modify file names > > -igor > > > On Tue, Sep 27, 2011 at 3:03 AM, Arne And wrote: >> How do I avoid the -ver-XXX version number from my resource reference >> in Wicket 1.5.0? >> >> More details: >> >> I want to use Scriptaculous, and have a AbstractDefaultAjaxBehavior >> that does a renderHead(...) { response.renderJavaScriptReference(new >> JavaScriptResourceReference(this.getClass(), "scriptaculous.js"); } >> >> This adds the
Re: Wicket 1.5.0 and ResourceReferences
Hmm. I see. This is not the solution I hoped for. I liked the public Time getLastModified() { return null; } method on the ResourceReference... oh well... A On Tue, Sep 27, 2011 at 12:06 PM, Martin Grigorov wrote: > Override > org.apache.wicket.request.resource.caching.FilenameWithVersionResourceCachingStrategy.decorateUrl(ResourceUrl, > IStaticCacheableResource) and call super only if this is not the > Prototype resource. > Use ResourceUrl to get the name of the resource. > > On Tue, Sep 27, 2011 at 12:03 PM, Arne And wrote: >> How do I avoid the -ver-XXX version number from my resource reference >> in Wicket 1.5.0? >> >> More details: >> >> I want to use Scriptaculous, and have a AbstractDefaultAjaxBehavior >> that does a renderHead(...) { response.renderJavaScriptReference(new >> JavaScriptResourceReference(this.getClass(), "scriptaculous.js"); } >> >> This adds the
Wicket 1.5.0 and ResourceReferences
How do I avoid the -ver-XXX version number from my resource reference in Wicket 1.5.0? More details: I want to use Scriptaculous, and have a AbstractDefaultAjaxBehavior that does a renderHead(...) { response.renderJavaScriptReference(new JavaScriptResourceReference(this.getClass(), "scriptaculous.js"); } This adds the