Skip to content

Changes

Summary

  1. NumberField: add lenient parsing (details)
Commit 7ea5205a461d4bbaeb05f9e5a19615cdf2690fd9 by Ralf Muri
NumberField: add lenient parsing

This implementation is a best effort approach for a more lenient parsing
of decimal/grouping separators for decimal inputs.
It is only used if the parsing by java's DecimalFormat.parse is not
successful. This is not a perfect solution since DecimalFormat parses
inputs that look wrong to the eye.

259328

Change-Id: I35ae05e5dc5b2470bd35e5fac962e92315a45ec7
Signed-off-by: Ralf Muri <ralf.muri@bsi-software.com>
Reviewed-on: https://git.eclipse.org/r/156071
Tested-by: CI Bot
Reviewed-by: Beat Schwarzentrub <bsh@bsiag.com>
The file was modified org.eclipse.scout.rt.ui.html/src/main/js/scout/text/DecimalFormat.js (diff)
The file was addedorg.eclipse.scout.rt.client.test/src/test/java/org/eclipse/scout/rt/client/ui/form/fields/numberfield/AbstractNumberFieldLenientParsingTest.java
The file was modified org.eclipse.scout.rt.client.test/src/test/java/org/eclipse/scout/rt/client/ui/form/fields/numberfield/AbstractNumberFieldTest.java (diff)
The file was modified org.eclipse.scout.rt.client/src/main/java/org/eclipse/scout/rt/client/ui/form/fields/numberfield/INumberField.java (diff)
The file was modified org.eclipse.scout.rt.client/src/main/java/org/eclipse/scout/rt/client/ui/form/fields/numberfield/AbstractNumberField.java (diff)
The file was modified org.eclipse.scout.rt.ui.html.test/src/test/js/scout/text/DecimalFormatSpec.js (diff)