I am using a RadioButtonGroup with several buttons.  For each RadioButton I add 
to the RadioButtonGroup I set the model to contain the data I want passed to 
property of an object to when I bind it to the RadioButtonGroup's 
"changeSelection" event.  I use a converter function for the binding like so:

var options = {
      converter : function(data) {
         return data[0].getModel();
      }
};

radioGroup.bind("changeSelection", targetWidget, targetWidgetsProperty, 
options);

With the converter I'm making the assumption that there will always be one 
RadioButton item in the array.  This works until I disable the composite widget 
on which it resides.  I sometimes need to disable the widget to block out user 
interaction as I update data on the form.  I find that when I do disable it, 
the value received by the converter is an empty array.

Is this by design?  I couldn't quite follow what was happening at a low level 
within the qooxdoo libraries in the setModelSelection routines for 
RadioButtonGroup and RadioGroup to see where it was failing.


------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to