I wrote a custom AttributeModifier as below and it works great if there's an
existing CSS class attached to a tag. Is there another method I could
implement?

c.add(new AttributeModifier("class", new Model(cls)) {
                   private static final long serialVersionUID = 1L;

                   protected String newValue(final String currentValue,
final String replacementValue) {
                       System.out.println("Current, New: " + currentValue +
", " + replacementValue);
                       return "" + replacementValue + " " + currentValue;
                   }
               });

Cheers,
-js
-------------------------------------------------------------------------
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