columns.add(new CellItemListenerPropertyColumn<DisplayHistoryEntry>(getString("history.newValue"), null, "newValue", cellItemListener) {
@Override
public void populateItem(final Item<ICellPopulator<DisplayHistoryEntry>> item, final String componentId,
final IModel<DisplayHistoryEntry> rowModel)
{
final DisplayHistoryEntry historyEntry = rowModel.getObject();
item.add(new DiffTextPanel(componentId, Model.of(historyEntry.getNewValue()), Model.of(historyEntry.getOldValue())));
cellItemListener.populateItem(item, componentId, rowModel);
}
});
final IDataProvider<DisplayHistoryEntry> dataProvider = new ListDataProvider<DisplayHistoryEntry>(getHistory());
final DataTable<DisplayHistoryEntry, String> dataTable = new DataTable<DisplayHistoryEntry, String>("historyTable", columns,