Hi, seems that in vaadin 14.1.17 the getValue of a TextField using Numera

Hi,

seems that in vaadin 14.1.17 the getValue of a TextField using NumeralFieldFormatter is truncated or null.

new NumeralFieldFormatter(".", ",", 3).extend(((TextField) field));

For instance:
a value like “123.456” is truncated in “123”
a value like “123.456.78” is empty “”

is there a problem with last vaadin ? 14.1.17

Thanks

Not that I know of. I’ll try to reproduce

I wasn’t able to reproduce. I used Vaadin 14.1.17 and textfieldformatter 4.1.4.

TextField textField = new TextField("Write a numeral");
new NumeralFieldFormatter(".", ",", 3).extend(textField);
textField.addValueChangeListener(l -> Notification.show("Value: " + l.getValue()));
add(textField);

Produces correct values. Do you perhaps have a converter or a binding or something else that strips the separators?

Hi, sorry, seems it’s my fault