Directory

CSValidation - Vaadin Add-on Directory

Client-side validation of text fields CSValidation - Vaadin Add-on Directory
The CSValidator component extension allows client-side validation of TextField, PasswordField, and TextArea components. The field value is validated after each key press without any client-server communication. You have two options for validating the values: regular expressions and JavaScript. The JavaScript return value can also be used to create counters in text fields and areas. The library comes with special JavaScriptEditor and RegExpEditor components, which allow you to develop and test JavaScript and regular expression validators easily. The editors are also available in the demo. The add-on is installed as a JAR, which includes the JavaDoc for the server-side API. You need to compile the widget set. The version 0.5 and later support Vaadin 7, and come as a component extension, which you can attach to a text field with extend(). For Vaadin 6 compatibility, use version 0.4.x, which offers three components instead of an extension: CSValidatedTextField, CSValidatedPasswordField, and CSValidatedTextArea. The functionality is exactly the same. The add-on should be considered as beta, as compatibility is not tested with IE, but it probably works.