finally, it works with Sven's solution but tag html has to be as i can see in the link class (initially it was <button> in my html). I create a ResourceLinkWithAnticache like this : public class ResourceLinkWithAnticache<T> extends ResourceLink<T> { public ResourceLinkWithAnticache(String id, IResource resource) { super(id, resource); }
private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String url = tag.getAttributes().getString("href"); url = url + "&antiCache=" + System.currentTimeMillis(); tag.put("href", url); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Add-noise-to-the-URL-of-ResourceLink-component-tp4664870p4664884.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