Using qooxdoo 0.8.2 I'm trying to bind a property of a class to a text field.

properties : {
  bitRate: {init: 0, check: "Number"}
},

...

                        var bitrateField = new 
qx.ui.form.TextField(this.getBitRate().toString());
                        var validationDecorator = new 
qx.ui.decoration.Single(1, "solid", "red");
                        var bitrateValidation = {
                                        onSetOk : function() {
                                                bitrateField.resetShadow();
                                                alert(parent.getBitRate());
                                        },
                                        onSetFail : function(e) {
                                                
validationTextField.setShadow(validationDecorator);
                                                alert("FAIL");
                                        }
                        };
                        bitrateField.bind("input", this, "bitRate", 
bitrateValidation);

However, when I type an invalid input ("A" for instance) all I get is an 
exception instead of the value.

I know 0.8.3 has some very cool features, but I want to stick with 0.8.2 for 
now... so does anyone have any ideas?

Thanks in advance,
rob

<<winmail.dat>>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to