Yee-Wah Lee created TRINIDAD-2357:
-------------------------------------
Summary: TrNumberConverter performs parseFloat for all numbers,
including integers
Key: TRINIDAD-2357
URL: https://issues.apache.org/jira/browse/TRINIDAD-2357
Project: MyFaces Trinidad
Issue Type: Bug
Reporter: Yee-Wah Lee
Priority: Minor
NumberConverter.js does:
parsedValue =
parseFloat(parsedValue.toFixed(this._numberFormat.getMaximumFractionDigits()));
The parsed value is converted to a String and is re-parsed as a float. This is
because toFixed sets the
decimals properly, but toFixed returns a string, so it then has to call
parseFloat to turn it back into a number.
However, for integerOnly=true, this is causing a side effect on WebDriver,
IE+Windows 7. InternetExplorer on Windows 7 somehow treats all numbers
resulting out of a parseFloat's string as a decimal (a whole
number resulting from parseFloat is still a decimal in IE+Win7), and WebDriver
dutifully marshalls it to Double.
Solution: do a conditional parseFloat by querying isIntegerOnly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira