Re: Updating an inmethod grid, looking for hints

2009-07-23 Thread Erik van Oosten
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

Re: Updating an inmethod grid, looking for hints

2009-07-23 Thread Erik van Oosten
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

Re: Updating an inmethod grid, looking for hints

2009-07-13 Thread Erik van Oosten
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.

Updating an inmethod grid, looking for hints

2009-07-11 Thread Erik van Oosten
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

Re: Updating an inmethod grid, looking for hints

2009-07-11 Thread Matej Knopp
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

Re: Updating an inmethod grid, looking for hints

2009-07-11 Thread Matej Knopp
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:

Re: Updating an inmethod grid, looking for hints

2009-07-11 Thread Erik van Oosten
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