sure

On Fri, Dec 3, 2010 at 12:21 PM, Stefan Droog <[email protected]> wrote:

> 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 <[email protected]>
>
> >
> >
> > 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]
> >
> >
>



-- 
Pedro Henrique Oliveira dos Santos

Reply via email to