Hello Omri, > 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. Thats goot to hear. We are always interested in feedback on such complex technologies.
> 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. Of which documentation do you speak? Do you mean the API documentation of the part's in the manual? > 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?). If you want to access the selected items, that's exactly the way to go. If you want to access the whole model, you can just get the model property from either the store or the controller and work directly with that. > 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? Unfortunately you would loose most of the data binding features. Using plain JavaScript objects could work as initial model set but it would be impossible to react on changes. Thats why we had to use qooxdoo objects because they are creating the change events the data binding relies on. Thanks for the feedback, Martin ------------------------------------------------------------------------------ 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
