RE: Add noise to the URL of ResourceLink component

2014-03-11 Thread Stijn de Witt
. -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

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
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

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
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=

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
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);

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
yes i'm using popupSettings final String mime=application/xml; ByteArrayResource res = new ByteArrayResource(mime,dSOBean.getOrder()); ResourceLinkByteArrayResource resourceL= new ResourceLinkByteArrayResource(myF, res) { @Override

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
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

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
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.

RE: Add noise to the URL of ResourceLink component

2014-03-10 Thread Stijn de Witt
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

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Martin Grigorov
'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

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
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