How can we? The deletion doesn't happen on the same page. Without
polling (or websocket), I don't see how we can update the table?
Every time we click a navigation button (in the table), the dataprovider
fetches the data from the database. It just so happens that that data
has been changed between clicks, and by then it would be too late to
update the toolbar (not to mention wrong to update the toolbar from the
dataprovider). Right?
regards
Oddgeir
On 11.06.2014 09:34, Martin Grigorov wrote:
Hi,
On Wed, Jun 11, 2014 at 8:55 AM, Oddgeir Bell <oddgeir.b...@deltasoft.no>
wrote:
It's not our component, but a Wicket component:
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.
AjaxNavigationToolbar
We add it like this:
datatable.addBottomToolbar(new AjaxNavigationToolbar(this));
And then I would assume it took care of itself, and updated the table when
it needed to...
No.
You should repaint the table after deleting a row to update the toolbars
automatically.
Otherwise you can repaint just the toolbars, or even just this specific
toolbar, but you have to do it yourself.
Regards,
Oddgeir
It seems the link is already disabled when you click on it.
Which component do you update via Ajax after deleting the row? It seems
the browser isn't showing the latest state of the table.
Regards
Sven
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org