Thank you. It worked with parseFloat(). I saw that when you posted in the beginning. I didn't realize its usage.
Thanks. kanugula. Andreas Junghans wrote: > > Hi, > > Am 23.02.2008 um 18:49 schrieb kanugula: > >> I got a new problem now when the price is filled by the user. >> Everything >> works when the price is null (Thanks for ur solution) >> >> While converting the price to "java.lang.Double", I am getting >> error "Cannot >> convert java.lang.String to java.lang.Double? > > You need to use parseFloat, so that a number is sent to the server > instead of a string. So instead of this: > > order.price = priceField.getValue(); > > you have to use this: > > order.price = parseFloat(priceField.getValue()); > > (After checking for null first, or course.) > > Regards, > > Andreas > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- View this message in context: http://www.nabble.com/How-to-convert-Array-to-Map-literal-tp15653619p15655201.html Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
