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
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
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
I see.
In this case you can use AbstractRequestCycleListener#onException() to
catch ListenerInvocationNotAllowedException and repaint the whole page
instead of logging it and showing an error page.
I.e. you need to do:
return new RenderPageRequestHandler(new
This works, thank you. We still get the stacktrace in the log, but
that's ok..
Thank you very much.
regards
Oddgeir
On 11.06.2014 10:32, Martin Grigorov wrote:
I see.
In this case you can use AbstractRequestCycleListener#onException() to
catch ListenerInvocationNotAllowedException and
By the way that is exactly how we handle these errors as well. The only time
I ever see ListenerInvocationNotAllowedExceptions are when the state of the
database changes between clicks. With repainting the screen the users may
click a link and then the link disappears which is weird. But that is
Hello,
I have a
org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable
with a
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider.
The dataprovider gets data from a database-table.
We add an AjaxNavigationToolbar to the datatable.
Everything works
12:26:02,310 WARN [org.apache.wicket.RequestListenerInterface]
(http--0.0.0.0-8203-2) behavior not enabled; ignore call.
Behavior
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink$1@609bfc99
at component
It seems the link is already disabled when you click