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, but unfortunately, the onComponentTag method is final. (For some
> reasons, I cannot use another clickable element). Any idea ?
> 
> Thanks,
> 
> Pierre-Yves
> 


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