Philipp Daumke schrieb:
I try to create an editable column using DefaultDataTable and
AjaxEditableLabel. My current version is posted below but it's quite a
hack and I wonder whether there's an official good solution for that
before I go on with my work.
i think the passing of your models
Hi Uwe,
thanks for the link. I agree that my model passing is weird. Your link
to the example explains an editable TreeTable but I look for a DataTable
example. In that tree table example I cannot use the
tree.table.PropertyEditableColumn as as the DefaultDataTable I want to
use requires
columns.add(new AbstractColumn(new Model(ColumnName))
{
public void populateItem(Item cellItem, String
componentId, final IModel model)
{
cellItem.add(new AjaxEditableLabel(componentId, new
PropertyModel(model, 'attribute1'));
}