Hi,
I am sure Martin will come up with a clever solution to my problem ;) - his
last suggestions worked perfectly.
I have not been able to make data binding work with a RadioGroup containing
radio buttons. My problem is the following:
I have a value, that is nullable, that can take a set of predefined values.
I want it to be bound to the GUI in the form of a radio group. My first
problem is that the default qx.ui.form.RadioButton does not allows for null
values from an interface point of view (you cannot click on a button to
toggle it off). qx.ui.toolbar.RadioButton allows that though.
So I have set up 4 qx.ui.toolbar.RadioButton that are linked to a
qx.ui.form.RadioGroup. Now I dont know how to setup the data binding; what
value should I bind to in the widget? I tried binding to "changeSelection"
and it does not work. I get:
target["set" + qx.lang.String.firstUp(lastProperty)] is not a function
I tried binding to value and it works better (although I should not use
value; it is marked deprecated in the qx.ui.form.RadioGroup API). But it's
still not perfect because it does not allow nulls (when I unselect a toggle
button, I get:
target["reset" + qx.lang.String.firstUp(lastProperty)]
The reset function indeed is not defined for the value property in the
current qx.ui.form.RadioGroup API.
I also tried to use qx.ui.form.RadioButton instead of
qx.ui.toolbar.RadioButton. It does not work either, eg, I dont know to which
property / event I should bind on the RadioGroup.
So what's the proper, current, non deprecated way of doing what I need? Or
is the RadioGroup widget not yet suitable to data binding, which would be a
real problem ;)
Thanks
Jean-Noel
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel