Hello Alex,
its always nice what ideas our used have and what bug they found. I consider
the behavior you described as such a bug. :) So thanks for testing it and a
special thanks for digging in so deep. 
I have openend a bug report for it and take care of it as soon as I have
time.
http://bugzilla.qooxdoo.org/show_bug.cgi?id=2880
You can add yourself as CC if you are interested in the further processing
of the bug.
Thanks,
Martin


Axel-5 wrote:
> 
> Hi all,
> 
> I'm not sure whether my attempt is considered evil coding so I would
> want to ask here for comments/hints.
> 
> Tried this with 0.8.3 and trunk with no difference.
> 
> I have three classes.  One abstract base class with the necessary tree
> properties (label, children) and then two derived classes, let's say A
> and B, without any properties.  I can use getChildren and setChildren on
> instances of the derived classes to build up a model tree of nodes with
> type A and B mixed together.  But when I try to use this tree as model
> with the tree controller I get an error.
> 
> I found, that the tree controller is calling
> qx.util.PropertyUtil.getProperties(modelNode.constructor) (Line 490 in
> qx.data.controller.Tree.js) which is simply returning
> modelNode.constructor.$$properties.  But inherited properties are not
> listed there (in my example the questioned property is listed in
> modelNode.constructor.superclass.constructor.$$properties).
> 
> There are a lot of ways to work around this - I know -, but after I was
> able to get and set the inherited properties I would expect them to be
> usable transparantly in data binding. Especially because in this
> particular case e.g. a "HAS A" model for the tree nodes would be less
> appropriate then an "IS A" modelling.
> 
> Or did I get something wrong here?
> 
> Cheers and thanks,
> Axel
> 
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9-12, 2009. Register
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/TreeController-modelNode-with-inherited-child-property-not-working-tp3752317p3753756.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to