Thx,
It works!
Regards,
alex.d
> The internal value gets updated on blur of the textfield. If you need
> this change while entering stuff, you maybe want to delete the
> previous content and set it again afterwards:
>
> text.setValue(null);
> text.setValue("Some more test");
>
> Cheers,
>
> Sebastian
>
>
> Alex D. schrieb:
>> It seems like the textfield doesn't update it's value when i type in
>> it. Once setValue() sets it to "some more test" it always stay the
>> same, and other setValue() calls doesn't change it because of
>> (newValue === oldValue) in OO.js.
>>> Hello,
>>> I have a little problem here with a simple TextField. I would like
>>> the textfield to respond to "enter"-keypress and change it's value
>>> to some string:
>>> ===============================================
>>> var text = new qx.ui.form.TextField("Test");
>>> text.addEventListener('keypress', function(e){
>>> if( e.getKeyCode() == qx.event.type.KeyEvent.keys.enter){
>>> text.setValue("Some more test");
>>> }
>>> });
>>> ===============================================
>>> It work's only the very first time! The possible workaround is to use
>>> text.getElement.value = "some more test"
>>> instead, but this doesn't look "qooxdoo-like" for me. Has anyone
>>> dealt with this problem?
>>>
>>> Regards,
>>> alex.d
>>>
>>> -------------------------------------------------------------------------
>>>
>>> Using Tomcat but need to do more? Need to support web services,
>>> security?
>>> Get stuff done quickly with pre-integrated technology to make your
>>> job easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>> Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>
>> -------------------------------------------------------------------------
>>
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel