Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-25 Thread Johan Compagner
use a attributemodifier for that.so something like: link.add(new AttributeModifier("class","yourclass"))On 7/25/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:hi,I am now struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to ext

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-25 Thread Pierre-Yves Saumont
Thanks to Justin, Franck, Eelco and Igor for the instant answers ! I am now going to spend a few hours on the next problem before bothering you again ! Pierre-Yves Eelco Hillenius a écrit : > link.add(new SimpleAttributeModifier("class", "myclass")); > > or use AttributeModifier if you need mo

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Eelco Hillenius
link.add(new SimpleAttributeModifier("class", "myclass")); or use AttributeModifier if you need more dynamic control. Eelco On 7/24/06, Pierre-Yves <[EMAIL PROTECTED]> wrote: > > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link (

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Igor Vaynberg
use an attribute modifier, there are plenty examples on the list. woogle for it at http://woogle.billen.dk/search.link.add(new SimpleAttributeModifier("class","error")); for simple cases -IgorOn 7/24/06, Pierre-Yves <[EMAIL PROTECTED]> wrote: hi,I am struggling with a new problem : I need to progra

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Frank Bille Jensen
link.add(new SimpleAttributeModifier("class", "YOUR-CLASS-NAME")); Frank On Mon, 2006-07-24 at 11:20 -0700, Pierre-Yves wrote: > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link ( element). I tried to extends the Link > element, b

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Use an AttributeModifier on the Link. Pierre-Yves wrote: > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link ( element). I tried to extends the Link > element, but unfortunately, th

[Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Pierre-Yves Saumont
hi, I am now struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extend the Link element, but unfortunately, the onComponentTag method is final. (for some reasons, I cannot use another clickable element). Any idea ? Thanks,

[Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Pierre-Yves
hi, I am struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extends the Link element, but unfortunately, the onComponentTag method is final. (For some reasons, I cannot use another clickable element). Any idea ? Thanks, Pier