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 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 (  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,
>>
>> Pierre-Yves
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727
>> Sent from the Wicket - User forum at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to