ado2000
(Giovanni Adobati)
1
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
Johannes10
(Johannes Häyry)
2
Not that I know of. I’ll try to reproduce
Johannes10
(Johannes Häyry)
3
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?
ado2000
(Giovanni Adobati)
4
Hi, sorry, seems it’s my fault