Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
TextField and logical model
we consider to use Vaadin in our new applications.
Now we evaluate Vaadin.
First thing I miss after reading "book of vaadin" is TextField with support for entering only numbers.
We have rich logical model - so we know on every field how length is it, if it is number, if it is decimal number, how precise is decimal number, etc..
For string with max length "varchar(10)" - TextField.setMaxLength() is fine solution.
For numbers "numeric(4,0)" or "numeric(16,2)" - I cant find any solution.
I find some BETA NumericTextField in addons directory, but this is so key function that I am surprised it is not in core vaadin.
Is there any standard solution? Allow users to enter mess and check it on serverside is no go for us!
Yes, this component with "number.setPreventInvalidTyping(true)" is solution.