-
30 Apr 2008 6:05 AM #1
[FIXED] Bug in ButtonBar.remove(Button) ?
[FIXED] Bug in ButtonBar.remove(Button) ?
Hello,
I'm having an issue regarding to the remove() method in the ButtonBar widget.
When I'm trying to remove a button, then I add another one instead, I'v got the following error message :
In debug mode, I saw that after removing a button in the ButtonBar class, the button is not actually removed in the AbstractContainer.items List...Code:java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
Is this a bug or something I've done wrong ?
Any help would be appreciated.
Thanks !
-
2 May 2008 10:54 AM #2
The containers, including button bar, have been updated. The changes are only in SVN, and will go out in the next rev.
There is what button bar remove looks like now:
If you have problems after beta3, please post again to this thread.Code:public boolean remove(Button button) { boolean removed = super.remove(button); if (removed) { button.removeListener(Events.Select, listener); button.removeListener(Events.BeforeSelect, listener); panel.remove(button); } return removed; }
-
2 May 2008 1:24 PM #3
-
20 May 2008 7:53 AM #4
[BETA3] Still bug in ButtonBar.remove()
[BETA3] Still bug in ButtonBar.remove()
The bug is still there on beta3.
Here's the error log message :
ThanxCode:[ERROR] component is not a child of this container java.lang.RuntimeException: component is not a child of this container at com.extjs.gxt.ui.client.widget.Container.remove(Container.java:414) at com.extjs.gxt.ui.client.widget.Container.removeAll(Container.java:444) at com.extjs.gxt.ui.client.widget.Container.removeAll(Container.java:198)...
Lionel
-
20 May 2008 11:41 AM #5
I tested and added unit tests to validate. Fix is in SVN.


Reply With Quote