Re: DataTable : Write direct HTML in cells?

2010-02-09 Thread Ashika Umanga Umagiliya
Thanks Igor ,Ernesto ! That helped alot! Ernesto Reinaldo Barreiro wrote: Use a Label? E.g. @Override public void populateItem(Item> item, String componentId, IModel rowModel) { Label label =new Label(componentId, new AbstractReadOnlyModel() {

Re: DataTable : Write direct HTML in cells?

2010-02-09 Thread Ernesto Reinaldo Barreiro
Use a Label? E.g. @Override public void populateItem(Item> item, String componentId, IModel rowModel) { Label label =new Label(componentId, new AbstractReadOnlyModel() { private static final long serialVersionUID = 1L;

Re: DataTable : Write direct HTML in cells?

2010-02-09 Thread Igor Vaynberg
use a label, call setoutputmodelstrings(false) on it -igor On Tue, Feb 9, 2010 at 12:16 AM, Ashika Umanga Umagiliya wrote: > Greetings all, > > I want to write direct HTML content in  DataTable cells. > Something like like : > > public abstract class AbstractWidthChangableColumn extends > Abstra

DataTable : Write direct HTML in cells?

2010-02-09 Thread Ashika Umanga Umagiliya
Greetings all, I want to write direct HTML content in DataTable cells. Something like like : public abstract class AbstractWidthChangableColumn extends AbstractColumn{ public void populateItem(Item> cellitem, String id, IModel model) { .. .. .. String htmlSnippet="so