Thanks Igor that works fine! - excellent support, more points for Wicket

Igor Vaynberg wrote:
class randomlink extends link {
  oncomponentntag(tag) {
    super.oncomponenttag(tag);
    string href=tag.getattrbutes().get("href");
    href+="&uuid="+UUID.random();
    tag.put("href", href);
  }
}

-igor


On Mon, May 12, 2008 at 2:46 AM, JulesT <[EMAIL PROTECTED]> wrote:
 I have a page with dynamic links which is reused both in terms of the number
 of links and the model data behind them. The problem is that the browser
 'link visited' concept is driven off the url and the wicket url contains
 indices. ie on subsequent same page requests the model data may change but
 the actual html link may have already been seen by the broswer on a previous
 page rendering. I want the 'link visited' concept to parallel the model
 data. I've overcome this on a previous web gui by adding a unique parameter
 in the link url hence the browser sees it as a new link.

 Being fairly new to Wicket (and liking it compared to what I've seen
 before!) I cant see how I can add a parameter with a dynamic value into the
 actual link html thats generated. Can anyone help?
 --
 View this message in context: 
http://www.nabble.com/Dynamic-user-supplied-parameters-on-wicket-Link-urls-tp17184358p17184358.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 ---------------------------------------------------------------------
 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]





--
Thanks & regards,

Julian Triggs
Tel   : 01925 752319
Mobile: 07963 992708

Reply via email to