class StyledButton extends Button {

 public StyledButton(...) {
   super();
   add(new SimpleAttributeModifier("class", "positive"));
 }

 @Override
 protected void onComponentTagBody(MarkupStream markupStream, ComponentTag
openTag) {
   replaceComponentTagBody(markupStream, openTag, " ");
 }

}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extending-Wicket-s-Button-class-to-do-some-extra-styling-tp3071023p3071104.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to