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
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
Hi Matej,
I just got a hint from a colleague: it might has something to do with
returning the wrong number of items in the dataprovider query. We
probably return UNDEFINED too often.
I'll look further into it.
Regards,
Erik.
Erik van Oosten wrote:
DataGrid. DefaultDataGrid mostly.
Hi,
How can I trigger an inmethod grid to do a /complete/ update of itself?
The only thing that I see is markAllDirty(). That will update the items
currently in the list, but it will /not/ get new items from the data
provider.
I researched the code for quite some time but I must have been
You need to call the update() method during an ajax request after you
have marked the items dirty.
-Matej
On Sat, Jul 11, 2009 at 11:01 AM, Erik van Oostene.vanoos...@grons.nl wrote:
Hi,
How can I trigger an inmethod grid to do a /complete/ update of itself?
The only thing that I see is
are you using treegrid or datagrid?
-Matej
On Sat, Jul 11, 2009 at 1:43 PM, Erik van Oostene.vanoos...@grons.nl wrote:
If I remember correctly that only updates the existing items and ignore new
items. I am looking for a way to get the new items too.
Regards,
Erik.
Matej Knopp wrote:
DataGrid. DefaultDataGrid mostly.
Erik.
Matej Knopp schreef:
are you using treegrid or datagrid?
-Matej
On Sat, Jul 11, 2009 at 1:43 PM, Erik van Oostene.vanoos...@grons.nl wrote:
If I remember correctly that only updates the existing items and ignore new
items. I am looking for a way