.
-Stijn
-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org]
Sent: maandag 10 maart 2014 17:28
To: users@wicket.apache.org
Subject: Re: Add noise to the URL of ResourceLink component
On Mon, Mar 10, 2014 at 6:20 PM, Stijn de Witt
stijn.dew...@planonsoftware.com wrote
Links use a href attribute instead of src.
Sven
On 03/10/2014 03:19 PM, BenHoit wrote:
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
thanks, i modify my onComponentTag
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
String url = tag.getAttributes().getString(href);
log.debug(URL = +url);
url = url + antiCache=
Are you using popupSettings?
Sven
On 03/10/2014 04:01 PM, BenHoit wrote:
thanks, i modify my onComponentTag
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
String url = tag.getAttributes().getString(href);
yes i'm using popupSettings
final String mime=application/xml;
ByteArrayResource res = new ByteArrayResource(mime,dSOBean.getOrder());
ResourceLinkByteArrayResource resourceL= new
ResourceLinkByteArrayResource(myF, res) {
@Override
Hi,
take a look at Link#onComponentTag() on why this does not work in your case.
You should override #getURL() instead.
Sven
On 03/10/2014 04:14 PM, BenHoit wrote:
yes i'm using popupSettings
final String mime=application/xml;
ByteArrayResource res = new
unfortunately getUrl is :
protected final CharSequence getURL()
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Add-noise-to-the-URL-of-ResourceLink-component-tp4664870p4664879.html
Sent from the Users forum mailing list archive at Nabble.com.
Subject: Re: Add noise to the URL of ResourceLink component
unfortunately getUrl is :
protected final CharSequence getURL()
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Add-noise-to-the-URL-of-ResourceLink-component-tp4664870p4664879.html
Sent from the Users forum
'final' from the
signature of a method with your use case.
We listen!
-Original Message-
From: BenHoit [mailto:benoit.lanoise...@orange.com]
Sent: maandag 10 maart 2014 16:38
To: users@wicket.apache.org
Subject: Re: Add noise to the URL of ResourceLink component
unfortunately getUrl
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 ResourceLinkWithAnticacheT extends ResourceLinkT
{
public ResourceLinkWithAnticache(String
10 matches
Mail list logo