You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Vojtěch Krása <vo...@gmail.com> on 2013/07/03 11:42:22 UTC

AjaxFallbackDefaultDataTable/DataTable design

Hello,

I implemented add/edit/remove on AjaxFallbackDefaultDataTable which updates
only the affected row. The problem is that for adding a new row I need to
call a method on DataGridView, which is not possible for two reasons: it is
a protected method, and the datagrid is a private field in DataTable.

So the only possibility is to copy paste about 8 classes or use reflection,
you can see yourself - http://pastebin.com/QxrfAD6V

Wouldn't it be possible to somehow make it more flexible? It would be maybe
OK to copy paste AjaxFallbackDefaultDataTable and DataTable, but all the
toolbars is not.

Thanks,

Vojtech