PDA

View Full Version : [FIXED] tree panel add new arraylist



fother
10 Jul 2009, 8:33 AM
TreePanel<MyModel> tree
tree.getStore().add(new ArrayList<MyModel>(), false);


return this stacktrace


com.google.gwt.core.client.JavaScriptException: (Error): Argumento inválido.
number: -2147024809
description: Argumento inválido.
at com.google.gwt.user.client.impl.DOMImplIE6.insertChild(Native Method)
at com.google.gwt.user.client.DOM.insertChild(DOM.java:930)
at com.extjs.gxt.ui.client.core.El.insertChild(El.java:1536)
at com.extjs.gxt.ui.client.widget.treepanel.TreePanel.onAdd(TreePanel.java:1013)
at com.extjs.gxt.ui.client.widget.treepanel.TreePanel$1.storeAdd(TreePanel.java:281)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:22)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:176)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:96)
at com.extjs.gxt.ui.client.store.TreeStore.doInsert(TreeStore.java:796)
at com.extjs.gxt.ui.client.store.TreeStore.insert(TreeStore.java:490)
at com.extjs.gxt.ui.client.store.TreeStore.add(TreeStore.java:163)
at br.com.softfocus.sfmap.client.page.acompanhamento.view.Test$Filtro$5.handleEvent(Test.java:433)
at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:176)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:96)
at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:444)
at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:427)
at com.extjs.gxt.ui.client.widget.Component.show(Component.java:1249)
at br.com.softfocus.sfmap.client.page.acompanhamento.view.Test$Filtro$4.handleEvent(Test.java:413)
at br.com.softfocus.sfmap.client.page.acompanhamento.view.Test$Filtro$4.handleEvent(Test.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:176)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:96)
at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:444)
at com.extjs.gxt.ui.client.widget.button.ToggleButton.toggle(ToggleButton.java:211)
at com.extjs.gxt.ui.client.widget.button.ToggleButton.toggle(ToggleButton.java:104)
at com.extjs.gxt.ui.client.widget.button.ToggleButton.onClick(ToggleButton.java:141)
at com.extjs.gxt.ui.client.widget.button.Button.onComponentEvent(Button.java:277)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:760)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)

sven
10 Jul 2009, 8:45 AM
You add nothing to the tree, only an empty list. However, this is fixed in SVN now.

fother
10 Jul 2009, 8:58 AM
:)