Use a Label? E.g. @Override public void populateItem(Item<ICellPopulator<Broker>> item, String componentId, IModel<Broker> rowModel) { Label label =new Label(componentId, new AbstractReadOnlyModel<String>() {
private static final long serialVersionUID = 1L; @Override public String getObject() { return "Generate your HTML"; } }); label.setEscapeModelStrings(false); item.add(label); } Ernesto On Tue, Feb 9, 2010 at 9:16 AM, Ashika Umanga Umagiliya < auma...@biggjapan.com> wrote: > Greetings all, > > I want to write direct HTML content in DataTable cells. > Something like like : > > public abstract class AbstractWidthChangableColumn<E> extends > AbstractColumn<E>{ > public void populateItem(Item<ICellPopulator<E>> cellitem, > String id, IModel<E> model) > { > .. > .. > .. > String htmlSnippet="<a href='somehere'>somehere</a>"; > cellitem.writeSomeHTML(htmlSnippet); > } > } > > where 'htmlSnippet' is dynamic ? > > Any tips? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >