Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
CSValidation addon 0.3.0 is available
Version 0.3.0 of the Client-Side Validation addon is out with several significant enhancements:
- CSValidatedTextArea - a multi-line text area with client-side validation. Setting setRows() does not make the regular CSValidatedTextField multi-line, but you have to use this class.
[*] Validation is now done also for empty fields. This may change the behavior of existing applications.
The new features are demonstrated in the new counter example. It shows how to make different kinds of counters to display how many characters you have typed and how many you can still type.
The addon is still marked as "beta" and only Firefox is listed in the browsers, as I haven't tested the other browsers. Please give feedback if you find that the addon works ok with other browsers as well, or if it doesn't.
Marko Grönroos: -- or if it doesn't.
So it seems, fixed, now it seems to work with at least Safari and Chrome as well. Thanks.
I put out the 0.3.3, which:
- validates the field also when it's created and is non-empty
- the [tt]setValidateEmpty(true)[/tt] forces validation also when the field is empty after creation, which is useful for counters
- the error/validation message can now be styled better
Updated the counter demos.