PDA

View Full Version : Flex Number conversion



xavan
Sep 16th, 2009, 05:04 AM
I have a flex class acting as a model Object.

This class has a Number property.

I can not set this property to null with having a flex compiler warning (myProp = null;)

I check the field value before a remote call and the value is NaN (Not a Number I guess).

In my remote procedure the value of the field is 0 in my java object (data type Integer).

How can I receive a null value in my java service instead of 0?

thomasvst
Sep 25th, 2009, 04:26 AM
(This is related to BlazeDS, not BlazeDS integration)

There is no solution because Actionscript Number cannot be null.
Have a look at for more infos :
https://bugs.adobe.com/jira/browse/BLZ-305
http://bugs.adobe.com/jira/browse/ASC-3645