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
