Version 0.3.0 of the Client-Side Validation addon is out with several significant enhancements:
[list]
[*]
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.
[*]
New "
valid
" and "
partial
" keywords for JavaScript evaluation results that allow specifying a message after the keyword. The valid and partial messages are displayed in the same area as the error messages. This makes creation of various counters, for example, very easy.
[*]
Validation is now done also for empty fields. This may change the behavior of existing applications.
[/list]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.
[list]
[]
Project home page
[]
API Documentation
[*]
Download the JAR
from Vaadin Directory
[/list]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.