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 repaint the whole page
instead of logging it and showing an error page.
I.e. you need to do:
return new RenderPageRequestHandler(new
PageProvider(exception.getComponent().getPage()))

Martin Grigorov
Wicket Training and Consulting


On Wed, Jun 11, 2014 at 10:02 AM, Oddgeir Bell <oddgeir.b...@deltasoft.no>
wrote:

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





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to