When using a select box and setting the model afterwards creates an error:
var controller = new qx.data.controller.Object();
// create the data model
var skeleton = {
subject : null
};
controller.addTarget(this.__subjectSB, "selection", "subject", true);
this.__model = qx.data.marshal.Json.createModel(skeleton, true);
controller.setModel(this.__model);
generates this error:
items is null switch(items.length)
if I make this change:
controller.addTarget(this.__subjectSB, "selection[0]", "subject", true);
I get this error:
targetArray.setItem is not a function targetArray.setItem(index,
value);
It seems to me to be a bug! Is it?
The error ONLY occurs with the select box. I have not tested for checkbox,
radiobutton, but for text field, area, date field which are ok.
Stefan
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel