Thanks Martin!

I think that in general I like the idea that you can bind any property from
one object to a different object - it seems to allow a lot of flexibility. I
think I will be able to give more feedback in a few days after I wrote some
more code using the data binding. 

I do have a comment about the documentation - I think it could be improved.
It is a little difficult to get a clear picture of how data binding
works/should work from the documentation. It has taken me a while, reading a
little of the store/marshal/controller and the demos just to set up a
working tree example (because I didn't want to create the model by hand but
to get it from a database, etc...). It took me an even longer time to
understand how I can later access the other model properties of a selected
item in the tree (I used the getSelection method of the controller, the
getItem method of the returned Array object, and then the getter methods of
that object, that were generated by the marshaler - is that the right way to
go?).

Perhaps it would make sense to save the original JSON data with the
generated model, to allow quick access to it. I, for example, get a tree
from the server which has many other properties important to me and it can
be cumbersome to always use getters/setters for that. Maybe not using the
marshaler is a better option for me?

Thanks again for the quick reply - and the pointer in the right direction,
Omri

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Using-the-treeController-to-generate-a-tree-from-JSON-data-tp6607643p6609623.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to