Hi Jean-Noel,
sorry, I can't answer you questions. I will talk to Martin, he has
implemented the data binding in qooxdoo, but he is in the office again
tomorrow. So Martin will answer your questions tomorrow.
Cheers,
Chris
Jean-Noël Rivasseau schrieb:
> Hi,
>
> I had a look at the data binding framework of Qooxdoo which looks
> great and promising. I have a question though, it looks like there is
> some support for pulling data out of a data source and then binding it
> to a view widget via the Json store class, then the controllers. But
> is the other direction possible, eg, detect a change to the model
> which was bound to a widget, and automatically make a server call back
> to the web server to update the data source (probably a relational DB).
>
> Of course, such an automatic change may cause some problems, so it
> should be configurable I guess (only update when the user presses a
> specific button for instance). I guess I could also manually code
> something up pretty quickly thanks to Qooxdoo events launched on the
> model (writing code on _apply for instance), but I was wondering, has
> anyone thought of this functionality? It would be nice if it were
> implemented in a way which makes sense.
>
> Second question, because of cross domain concerns, I am using the
> script implementation when making server calls. Is this option
> available when using the Json store? Eg, is it possible to use the
> current Json store with a server call via a script transport
> implementation.
>
> Third question, the docs about using a delegate for data-binding don't
> mention how to actually use the delegate with the controller ?! Eg,
> once you wrote your delegate, how do you hook it up in your controller?
>
> Last question, I am interested in the hierarchy data binding ("A more
> advanced feature of the single value binding is to bind a hierarchy of
> properties to a target property.")
> However, conceptually, with a complex model, there could be more than
> one child for the parent object.
> Eg, how would you adapt the current following code to a case where a
> has a "b" node but also a "c" node with a different property? Does not
> look possible currently...
> var a = new Node("a"); // set the name to „a“
>
> var b = new Node("a"); // set the name to „b“
> a.setChild(b);
>
>
> // bind the property to a labels content
> a.bind("child.name <http://child.name>", label, "content");
>
> Thanks for the help!
> Jean-Noel
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel