On Aug 20, 2009, at 17:07 , Jonathan Weiß wrote:

>
> Hello Jean-Baptiste,
>
>
> as Robert mentioned correctly, the TextField takes only strings as  
> value
> (it's not a bug - it's a feature ;-) ).
> If you use 12+"" JavaScript will convert the integer 12 to a string  
> using
> the toString() method on the Number. Since all objects in JavaScript  
> have a
> toString() method, you could do this with everything:
> w.setValue({"foo":"bar"}+"");​
>
is String(v) equivalent to v+"" when v=12 ?

> May I ask what you have in mind asking this? Often it's handy to use  
> the
> Spinner for numeric values or you could write your own NumberField  
> (based on
> TextFeidl), if you need it...
>
This is because it is generic, I don't know the type of v.
It could either be an integer (the case I had that produced the bug)  
or any other thing.

> Cheers,
> Jonathan
>
>
> -----
> Jonathan Weiß
> Framework Engineer
>
> http://mysterycity.de/blog Blog  -  http://www.linkedin.com/in/jonathanrass
> LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
> -- 
> View this message in context: 
> http://n2.nabble.com/TextField-and-more-generally-setValue-question-tp3479486p3479676.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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