I have a text field that uses Numeral. When the user types, everything works perfectly.
When I try to programmatically put a value, the formatting is not done.
What's the secret for it to correct the formatting after I set a value?
Example:
TextField textTest= new TextField("Test");
new NumeralFieldFormatter(".", ",", 3).extend(textTest);
//If I set a value:
textTest.setValue("1234.4");
It's not formatted, it's only if the user modifies anything.
I use in Vaadin 23.
I have a text field that uses Numeral. When the user types, everything works perfectly.
When I try to programmatically put a value, the formatting is not done.
What's the secret for it to correct the formatting after I set a value?
Example:
It's not formatted, it's only if the user modifies anything.
I use in Vaadin 23.