Hi,

Trying to setValue a javascript int typed value in a TextField failed with an 
error in the AbstractField superclass.
Does it sound a known problem to one of you ?

I thought any javascript type could be set to a TextField and because of 
serialization, I need that value to be typed as numeric in javascript so I 
can't do a setValue(""+5) because then, the getValue will nto return an int but 
a string typed value.

We're using qx 1.1

Here's the code in the playground :
http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%20%22%252F%252F%2520Create%2520a%2520button%250Avar%2520button1%2520%253D%2520new%2520qx.ui.form.TextField%28%29%253B%250A%250A%252F%252F%2520Document%2520is%2520the%2520application%2520root%250Avar%2520doc%2520%253D%2520this.getRoot%28%29%253B%250A%250A%252F%252F%2520Add%2520button%2520to%2520document%2520at%2520fixed%2520coordinates%250Adoc.add%28button1%252C%250A%257B%250A%2520%2520left%2520%253A%2520100%252C%250A%2520%2520top%2520%2520%253A%252050%250A%257D%29%253B%250A%250Abutton1.setValue%285%29%253B%250A%250A%22%7D




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

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

Reply via email to