Hallo

here is an another question for SelectBoxes.
var doc = this.getRoot();
var data = {value: ["true"]};
var model = qx.data.marshal.Json.createModel(data, true);
var controller = new qx.data.controller.Object(model);
var editor = new qx.ui.form.SelectBox().set({required:true, maxWidth: 60,
minWidth: 60});
editor.add(new qx.ui.form.ListItem("True", null, true));
editor.add(new qx.ui.form.ListItem("False", null, false));
controller.addTarget(editor, "modelSelection[0]", "value[0]", true); 
doc.add(editor, {left: 100, top: 50});


-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Problem-qx-data-controller-Object-qx-data-Array-and-qx-ui-form-TextField-tp5253843p5558069.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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

Reply via email to