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
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
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 (
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
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
-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
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,
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