This class modifies the src attribute of the img tag:
...
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
String url = tag.getAttributes().getString("src");
url = url + ((url.indexOf("?") >= 0) ? "&" : "?");
url = url + "wicket:antiCache=" +
System.currentTimeMillis();
tag.put("src", url);
}
...
Maybe you can do something similar with your links.
Am Thu, 13 Aug 2009 01:15:48 -0700 (PDT)
schrieb FaRHaN <[email protected]>:
> How can i use this for every request ? As i want to generate a unique
> URL for every page (not for images), any examples ???
>
>
>
>
> ________________________________
> From: Witold Czaplewski <[email protected]>
> To: [email protected]
> Sent: Thursday, August 13, 2009 2:58:18 PM
> Subject: Re: How to add Random number to URL ?
>
> Take a look at NonCachingImage.
>
> Witold
>
> Am Thu, 13 Aug 2009 00:44:07 -0700 (PDT)
> schrieb FaRHaN <[email protected]>:
>
> > Hi,
> > I want to add a random number to my requested URL, so that each
> > request to my page go to server and not load from the cache. How can
> > i add a random number to each requested URL ? Some examples
> > acheiving this behaviour will be appreciated...
> >
> > Thanks...
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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]