hi. Have you tried something like
myLink.add(new AttributeAppender(...)); or myLink.add(new AttributeModifier(...)) this methods can add/modify a css class in a markup element. Please check the javadocs for method details if this is what you want. However, if i were in your situation, i would use css only to archieve this , that is , if each link reloads a different page. Josh.