Sorry, please ignore my previous e-mail. The behavior I saw was due to a DropDownChoice I added to the toolbar. During a submit Wicket verifies whether the ddc is visible. Unfortunately this leads to a call to PagingToolbar.isVisible.
Back to square 1. Regards, Erik. On Thu, 23 Jul 2009 05:20:06 -0700 (PDT), Erik van Oosten <e.vanoos...@grons.nl> wrote: > Hi Matej, > > I finally found the bug. > > When you are using a DefaultDataGrid it adds a PagingToolbar. PagingToolbar > overrides isVisible. In isVisible the total row count is determined, this > will cache the query result for this request. However, isVisible is called > /before/ the ajax listener is called. Therefore any changes to the grid > (like rowCount) are not used. > > Regards, > Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org