hi,
i want to add noise to the url of a ResourceLink component (to avoid browser
caching problem) ...
i looked at Image#addAntiCacheParameter and try to put it in onComponentTag
of my ResourceLink 
        @Override
        protected void onComponentTag(ComponentTag tag) {
                super.onComponentTag(tag);
                String url = tag.getAttributes().getString("src");
                log.debug("URL = "+url);
                url = url + (url.contains("?") ? "&" : "?");
                url = url + "antiCache=" + System.currentTimeMillis();
                tag.put("src", url);
        }

but it doesn't work and in my log, url is null ...
Does anybody know how to do this ?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-noise-to-the-URL-of-ResourceLink-component-tp4664870.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to