Unexpected behavior of f:convertNumber
--------------------------------------
Key: MYFACES-1507
URL: http://issues.apache.org/jira/browse/MYFACES-1507
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.1.5-SNAPSHOT
Reporter: Roland Schaal
When I type the value "abc12345" it gives me a ConversionError as expected.
But when I type the value "123abc45" there is no ConversionError but it
converts this input to the Number "123" and cuts the rest of it. I would also
expect a ConversionError as this input is not a valid Number...?!
Looking into the source of NumberConverter I see that it uses DecimalFormat to
parse the input into Number which definitive cuts the String value in the
descibed way. Maybe there should also be a verification for any character of
the typed input string.
Would this be a correct way to fix this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira