Thanks for your reply but I prefer to add the image and label via add(new Image(..,...)); add(new Label(..,..));
Instead of replacing the body. Is that possible as well? Stefan 2010/12/3 Alexander Morozov <alexander.v.moro...@gmail.com> > > > 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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >