Re: DefaultDataTable and AjaxEditableLabel

2009-01-22 Thread Uwe Schäfer
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

Re: DefaultDataTable and AjaxEditableLabel

2009-01-22 Thread Philipp Daumke
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

Re: DefaultDataTable and AjaxEditableLabel

2009-01-22 Thread Igor Vaynberg
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')); }