Skip to content

Default validator validates on string with wrong decimal symbol #3

@aheintz

Description

@aheintz

I'm using a decimal format with space as grouping char and comma as decimal char. But, a value such as 123,32 is determined to be invalid. The validator uses a good regex, but the value it validates is not the input string though. When using the setValue() method, the value is set to String noExponent = BigDecimal.valueOf(newValue.doubleValue()).toPlainString(); instead of using the format info in NumberField.

Since the default validator in many cases get a erroneous result, I think it should be disabled by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions