Thanks Igor ,Ernesto ! That helped alot! Ernesto Reinaldo Barreiro wrote:
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 < [email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
