Re: How to modify markup?

2013-02-21 Thread Zilvinas Vilutis
I think that is what borders are for ( read here: https://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html ) Regards Žilvinas Vilutis On Wed, Feb 20, 2013 at 8:20 PM, Stefan Renz wrote: > Hi, > > what would be the best way to modify the HTML output of a component? > > Conside

Re: How to modify markup?

2013-02-20 Thread Andrea Del Bene
The first solution that comes in my mind is to overwrite method onComponentTagBody. Maybe this could work : add(new Link("helloMessage"){ @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag tag) { getResponse().write(""); //write

How to modify markup?

2013-02-20 Thread Stefan Renz
Hi, what would be the best way to modify the HTML output of a component? Consider this: Text which is backed by a Link component. By adding a behavior (I would assume), I would like to modify this HTML to become sth like Text Please note that I want to preserve the componentTagBody. I know h