Hey,
> But, if I copy your code to the current playground the output is
> You are sending:
> {"count":"1","coloroption":{"label":"Green","id":4},"hidden":"x"}
>
> in the devel playground
> You are sending: {"count":"1","coloroption":3,"hidden":"x"}
>
> Is this why I use version 1.2 of QX and not 1.3?
Yes, we added that feature of binding the model in the trunk after we released
1.2. Either you wait for a couple of more weeks (8.12. will be the release
date) or you take the trunk which should be no problem usually.
> you have also changed this;
> controller.addTarget(selectBoxColor, "selection", "coloroption", true );
> to
> controller.addTarget(selectBoxColor, "modelSelection[0]", "coloroption",
> true);
>
> What is "modelSelection[0]" ?
modeSelection is a property on the target, here on the select box which is a
data array (bindable array) containing the models instead of the widgets. So
working with data binding, you should always use the model selection or the
selection of the controller to stay on the model level.
Best,
Martin
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel