-
1. Re: NumericStepper with stepSize=0.1 set value to NaN
Flex harUI Mar 30, 2011 8:08 AM (in response to eprevot123)Sounds like a bug. The stepsize should always be 0.1 because that is
interpreted as a number. But on click the display should be changing to 0,1
-
2. Re: NumericStepper with stepSize=0.1 set value to NaN
Bill Sahlas Apr 5, 2011 9:27 AM (in response to eprevot123)I submitted a new bug http://bugs.adobe.com/jira/browse/SDK-30125 for this issue.
-
3. Re: NumericStepper with stepSize=0.1 set value to NaN
Bill Sahlas Apr 5, 2011 10:08 AM (in response to Bill Sahlas)I updated the description to say
NumericStepper cannot display the correct decimal separator for various locale (fr_FR, ru_RU)
-
4. Re: NumericStepper with stepSize=0.1 set value to NaN
JacobG (Adobe) Apr 5, 2011 3:37 PM (in response to eprevot123)There are really two separate issues here:
(1) Halo NumberValidator produces a validation error for decimal values when locale is set to fr_FR
(2) Spark NumericStepper does not change decimal separator based on localeI will file a separate issue for the Halo NumberValidator issue. The issue filed by Bill can be used to track the decimal separator not changing based on locale.
As a workaround, you can change the way the value is displayed by the NumericStepper by using the valueFormatFunction and valueParseFunction.
For example, the following will replace the "." decimal separator with a ",".
<fx:Script>
<![CDATA[
private function myFormatFunc(val:Number):String
{
return val.toString().replace(".",",");
}
private function myParseFunc(val:String):Number
{
var stringVal:String = val.replace(",",".");
return Number(stringVal);
}
]]>
</fx:Script>
<s:NumericStepper id="ns" stepSize="0.1" value="0" valueFormatFunction="myFormatFunc" valueParseFunction="myParseFunc"/> -
5. Re: NumericStepper with stepSize=0.1 set value to NaN
JacobG (Adobe) Apr 5, 2011 3:38 PM (in response to eprevot123)Also note that if you use the Spark NumberValidator released as part of the Flex 4.5 beta, the validation error does not occur.
-
6. Re: NumericStepper with stepSize=0.1 set value to NaN
eprevot123 Apr 6, 2011 12:50 AM (in response to JacobG (Adobe))ok thank you



