I'm trying to create a list that is operated by a list controller. Sample
code is here:
http://tinyurl.com/kb8wwef
This causes the JavaScript error
494706 playground.Application[17-0]: GlobalError: Object [object Object]
has no method 'getChildren' Error (<anonymous>)
By commenting out line 9, this error goes away and the code works fine.
However, if I do that I can't access getTarget() from within methods of the
subclass of the controller. Moreover if I pass in the arguments 'array' and
'list' on line 4, I get the error
660303 playground.Application[17-0]: GlobalError: Object [object Object]
has no method 'add' Error (<anonymous>)
Similarly commenting out line 11 eliminates the problem but then the list
is never populated. Obviously in this trivial example it's beyond what
needs to be done, but in my application the 'model' value of the controller
is being bound from an AJAX request.
It seems that the binding can only happen after the list has been added to
the doc panel. Is there a way for me to create the controller before that
point and bind its target without causing these errors?
--Greg
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel