Hi there, it seems that one can not access the Model value of a selected item via the getModelSelection() method[1] when it contains a <null> model-value.
The "changeSelection" Event data however works O.K. The following example shows the issue: http://tinyurl.com/qhd5vu2 When you select the 'null' Item, the "event data" works as expected, the "SelectBox::getModelSelection()" does not[2]. The following changes in MModelSelection[1] will fix that, but I don't know what else this would break ;) --- Pre: -------------------------------------- <code> __onModelSelectionChange : function() { // ... var model = item.getModel ? item.getModel() : null; if (model !== null) { modelSelection.push(model); } </code> ------------------------------------------------ --- Post: -------------------------------------- <code> __onModelSelectionChange : function() { // ... var model = item.getModel ? item.getModel() : undefined; if (model !== undefined) { modelSelection.push(model); } </code> ------------------------------------------------ This issue is present in 3.0.x branch, 3.5.x branch and trunk. I've not checked any further down the tree... ;) Since I took the liberty to look for the bug in bugzilla and found this one: http://bugs.qooxdoo.org/show_bug.cgi?id=7565 That seems to describe what I've been struggling with. So I've added my example there. /Peter [1] qx.ui.form.MModelSelection [2] it still returns the 'previous' (old) selection -- ** Unsere Veranstaltungen: T-Matik in Greven, 20.05.2014 Post-Expo in Stockholm, Halle A - Stand A10.05, 23.-25.09.2014 TIS-Hausmesse in Bocholt, 16.10.2014 transfairlog in Hamburg, 04.-06.11.2014 ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees_APR _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel