Oh you are right (!?!):
var sb = new qx.ui.form.SelectBox();
var form = new qx.ui.form.Form();
form.add(sb, "sb");
this.getRoot().add(new qx.ui.form.renderer.Single(form));
var fc = new qx.data.controller.Form(null, form);
var lm = qx.data.marshal.Json.createModel([
{l: "a"},
{l: "b"},
{l: "c"}
]);
var lc = new qx.data.controller.List(lm, sb, "l");
fm = fc.createModel(); // ---> ERROR!!!
Thats a common use case. I opened a bug report [1] to get this fixed. But I
think the desired behavior is that the object from the model selection will
be refenrenced in the new model as well. I take care of it today (at least I
hope so).
Best,
Martin
[1] http://bugzilla.qooxdoo.org/show_bug.cgi?id=3883
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Databinding-problem-Creating-form-model-stopped-working-tp5314091p5319920.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel