Does it still fail if you use two different variables for the two list
items instead of the same 'xx' variable?

   Gene

On Tue, 2009-12-15 at 18:07 -0500, Ken MacDonald wrote:

> I've collapsed the test case to this:
> 
>    (menuCombo is the SelectBox() defined elsewhere)
>     var xx = new qx.ui.form.ListItem('foo', null);
>     this.menuCombo.add(xx);
>     xx = new qx.ui.form.ListItem('foo2', null);
>     this.menuCombo.add(xx);
>     this.menuCombo.removeAll();   // dies
> 
> Ken
> 
> 
> On Tue, Dec 15, 2009 at 5:31 PM, Ken MacDonald <[email protected]>
> wrote:
> 
>         I have a form.SelectBox() and have added 2 items to the
>         selection, added a listener but I think that's about it for
>         what's happened to that widget. I think maybe I set some
>         userData() on it, as well.
>         
>         On my form I have a 'reset' button, which I want to reload the
>         app from the DB, including the select box. So I've tried
>         doing:
>         
>         selectbox.removeAll() to attempt to remove the two items I
>         added so I can add them again, but it blows up at that point,
>         firebug goes off somewhere (?) and I'm not sure where it ends
>         up. I also tried removing the children individually after
>         doing a getChildren() and it fails on removal of the 2nd
>         child, not the first.
>         
>         I was just able to trace a bit farther, and it's hitting this
>         in Widget.js:
>         
>         this.assertNotUndefined(child);
>         2134 this.assertIdentical(child.getLayoutParent(), this,
>         "Remove Error: " + child + " is not a child of this widget!");
>         
>         Is this a bug in remove()? It should not be trying to remove
>         things it doesn't have, or alternately it's making a mistake
>         thinking that this child is not one of it's children, since
>         the child was just returned by getChildren().
>         Ken
>         
>         
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________ qooxdoo-devel mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to