Hello all,
I have a DataTable.
I want to add to a specific table an attribute using AttributeAppender.
I override the newCellItem method and add there this appender.
I don't want to add this to ALL cells, but only to those that their Header
is "Description".
I tried getModel and when debugging I saw that there is "displayModel" but
could not get it.
Here's the code snippet:
entityDataTable = new MyDataTable("entitiesList", columnsArray,
entitiesProvider, paging) {
private static final long serialVersionUID =
-8134843643478428936L;
@Override
protected Item newCellItem(String id, int index, IModel
model) {
Item item = super.newCellItem(id, index, model);
*// This is where I need to check the title.
item.add(new AttributeAppender("class", true, new
Model("descriptionCell"), " "));*
return item;
}
};
Any ideas?
Thanks
--
Eyal Golan
[EMAIL PROTECTED]
Visit: http://jvdrums.sourceforge.net/