I have a ListStore with BeanModel instances in it
the list view is displayed correctly.

when the user changes some data, I get the BeanModel from the store and set the changed data on the bean: after that I call listStore.update(beanModel).
When I do that I get an Invalid Argument error (in hosted mode - didn't try webmode yet) - see stack trace at the end of this post
is this the correct way do update the list store at all?
if so, any ideas what could be the problem?
cheers,
martin

com.google.gwt.core.client.JavaScriptException:
(Error): Ungültiges Argument.
number: -2147024809
description: Ungültiges Argument.
at com.google.gwt.dom.client.Node$.removeChild$(Native Method)
at com.google.gwt.user.client.DOM.removeChild(DOM.java:984)
at com.extjs.gxt.ui.client.core.El.removeChild(El.java:1670)
at com.extjs.gxt.ui.client.widget.ListView.onUpdate(ListView.java:749)
at com.extjs.gxt.ui.client.widget.ListView$3.storeUpdate(ListView.java:625)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:42)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:73)
at com.extjs.gxt.ui.client.store.Store.update(Store.java:506)

Martin.Trummer

1 Sep 2009, 5:18 AM

should I provide some more info?
if so: what code would be interesting?

Arno.Nyhm

1 Sep 2009, 5:47 AM

if you extract a standalone working example it is the best. then its just easy to copy and past and to debug your problem.

Martin.Trummer

1 Sep 2009, 10:03 AM

ok - i got a working example
simply start it in hosted mode - double click on any item in the list view and the hosted mode shell will show you the exception