Hello Sergey,
your example was a bit misleading but finally I got it working and I can
explain why it didn't.
First of all, using the selection of a widget in the binding is in almost
every case not what you want. The idea of the binding was to stay away from
the widgets as far as possible and stick to the data. Using the selection
means using the selected ListItems which is in most cases not the thing you
are interested in. Instead, using the model selection returns the
corresponding model to the selected list item. For that, you have to supply
a model for every list item which an of course be a simple string.
var dummyItem = new qx.ui.form.ListItem("-please select-", null, "dummy");
"dummy" in that case is the model which will be reflected in the from
controller model.
controller.addTarget(
genderSelectBox, "modelSelection[0]", "gender", true //,
genderModel2Selection, genderSelection2Model
);
Additionally, you have to use the model selection as I said to get it
working.
See the whole code to get a complete image how I solved it:
http://tinyurl.com/32s5a8q
Regards,
Martin
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/How-to-properly-clear-SelectBox-with-bindings-tp5329146p5336908.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel