Hiho!

I've an application which loads a tree model to a TreeController, connected to 
a Tree and a couple of other thingies in the GUI. This works fine - so far. 
Now, I'm going to add a new node like shown in the TreeController demo 
application using something like:

nodes[0].getChildren().push(node);

What I get, is an error in qx.data.controller.Tree.js, line 447 (444 in the 
original file of qooxdoo 0.8.2, I've added debug lines in Tree.js):

rootNode.getChildren() is null
__updateTreeChildren()(qx.ui.tree.TreeFolder[undefined] 
$$useinit_focusable=true $$useinit_selectable=true, td.data.model.Movie[1ac] 
$$hash=1ac $$user_children=[5] $$user_uid=21)Tree.js (Linie 447)
__changeModelChildren()(qx.event.type.Data[6u] $$hash=6u _type=change 
_target=[5])Tree.js (Linie 344)
dispatchEvent()([undefined, undefined, undefined, 2 more... $$hash=1ad 
__array=[5] length=5], qx.event.type.Data[6u] $$hash=6u _type=change 
_target=[5], "change")Direct.js (Linie 99)
wrappedFunction()Interface.js (Linie 422)
dispatchEvent()([undefined, undefined, undefined, 2 more... $$hash=1ad 
__array=[5] length=5], qx.event.type.Data[6u] $$hash=6u _type=change 
_target=[5])Manager.js (Linie 809)
fireNonBubblingEvent()([undefined, undefined, undefined, 2 more... $$hash=1ad 
__array=[5] length=5], "change", function(), [Object start=4 end=4 type=add, 
null, false 0=Object 2=false])Registration.js (Linie 327)
fireDataEvent()("change", Object start=4 end=4 type=add, null, 
undefined)Object.js (Linie 515)
push()(td.data.model.Scene[1d8] $$hash=1d8 $$user_children=[0] 
$$user_name=Test)Array.js (Linie 173)
addSceneAfter()(null, td.data.model.Scene[1d8] $$hash=1d8 $$user_children=[0] 
$$user_name=Horst)Model.js (Linie 48)
(?)()()

So it seems like rootNode in __updateTreeChildren: function(rootNode, 
modelNode) is empty.

Can someone pass me a hint on what I can do for further debugging?

Thanks,
Cajus

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to