Hi Martin, I was hoping that you had the answer. I read through some mailing list entries I found with Google and those didnt' sound encouraging.
Yes, I think this is what I am looking for. This should allow me to get rid of my current hack using databinding only in one direction and an explicit listener on property changes for the other direction (doing all kind of magic in the listener) ... I just started to use databinding seriously in my current application and I like it VERY MUCH as it results in much simpler/compact code. Now I only have to figure out where in my application I can use it and do some cleanup! BTW, you were talking about the next release in various posts, recently. Is the currently published roadmap still valid (1.3 in early December)? What about 1.2.1, is this perhaps coming sooner? Ideally for us it would come late October as our application should go into production October 30th and I am slightly uneasy to base it on a trunk version (although I didn't really have bad experiences with trunk in the past) ... Thanks, Fritz On Wed, 22 Sep 2010, Martin Wittemann wrote: > Hello Fritz, > > I was sure I had exactly such a demo some time ago. I added this feature > recently so you cant find it in the current demos. Just take a look at the > form and list Controller demo in the devel demo browser. Is that what you are > looking for? > > http://demo.qooxdoo.org/devel/demobrowser/#data~FormAndListController.html > > The Trick is that you can use the bindItem delegate now to bind the model > property as well: > > controller.bindProperty("data", "model", null, item, index); > > Best, > Martin > > > > Am 21.09.2010 um 15:46 schrieb Fritz Zaucker: > >> Hi, >> >> I would like to use a SelectBox with databinding like in >> >> http://demo.qooxdoo.org/current/demobrowser/#data~SelectBox.html >> >> However, I would like to have items in the select box that have both label >> and model. Without databinding I would create such a SelectBox with >> >> var sb = new qx.ui.form.SelectBox(); >> sb.add(new qx.ui.form.ListItem('myLabel1', null, 'myModelA'); >> sb.add(new qx.ui.form.ListItem('myLabel2', null, 'myModelB'); >> ... >> >> How can I do that using databinding? The demobrowser example only used model >> data for the items like >> >> var model = new qx.data.Array(["A", "B", "C", "D", "E", "F", "G", >> "H"]); >> var selectBox = new qx.ui.form.SelectBox(); >> var controller = new qx.data.controller.List(model, selectBox); >> >> Thanks, >> Fritz >> >> -- >> Oetiker+Partner AG tel: +41 62 775 9903 (direct) >> Fritz Zaucker +41 62 775 9900 (switch board) >> Aarweg 15 +41 79 675 0630 (mobile) >> CH-4600 Olten fax: +41 62 775 9905 >> Schweiz web: www.oetiker.ch >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
