This is the code:

qx.Class.define( "org.custom.rap.cgui.TText", {
    extend: qx.ui.layout.CanvasLayout,
    construct: function( id ) {
        this.base( arguments );
        this.addEventListener( "insertDom", this._load, this );
    },
    properties : {     
        value : {
                init: "",
                apply : "textValueChanged"
        }       
    },
    members : {
                _load : function (evt) {
                        this.__text  = new qx.ui.form.TextField("");
                        this.__text.addEventListener("input", this._input, 
this);
                        this.__text.setLiveUpdate(true);
                        this.__text.setValue(this.getValue());
                        this.__text.setWidth("100%");
                        this.__text.setHeight("100%");
                        this.add(this.__text);                  
                },
               _input : function (evt) {                        
                        
this.__text.setValue(this.__text.getValue().toUpperCase());                     
                },      
                textValueChanged : function () {
                        if(this.__text!=null) {
                                this.__text.setValue(this.getValue());
                        }                               
                }
    }   
} );

If I remove the line "this.__text.setLiveUpdate(true);", then
"this.__text.getValue()"  inside  _input returns nothing, so unless the
liveUpdate property is set to true I don't see the value of the TextField
inside _input.

My question is, do I have to set liveUpdate property to true? or am I doing
something wrong?
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/TextField-liveUpdate-tp5458862p5461779.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to