Ok, got it now:

var comboModel = qx.data.marshal.Json.createModel([]);
var form = new qx.ui.form.Form();
var textf = new qx.ui.form.TextField();
var combo = new qx.ui.form.ComboBox();
var comboCtrl = new qx.data.controller.List(null, combo);
comboCtrl.setModel(comboModel);
form.add(textf, "Text", null, 'text');
form.add(combo, "Combo", null, 'combo');
var frmCtrl = new qx.data.controller.Form(null, form);
var frmModel = frmCtrl.createModel();
var rend = new qx.ui.form.renderer.Single(form);
var wnd = new qx.ui.window.Window();
wnd.setLayout(new qx.ui.layout.VBox());
wnd.add(rend);
wnd.show();

comboModel.push('Test');
comboModel.push('Test2');
qx.util.Serializer.toJson(frmModel);

This works as expected. I need to have seperate models to hold my list data
and one to hold the actual form data, including the selection from the
lists.



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/list-controller-does-not-update-list-tp7586693p7586694.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to