HTML5 Validation Dialect for the Thymeleaf template engine


This Thymeleaf dialect reads JSR-303 annotations and modifies HTML code introducing HTML5 form validation code matching the annotations.


JSR-303 provides server-side validation for Java web applications, but client side validation has usually been achieved using Javascript.
Fortunately, HTML5 has brought new attributes for simple browser validation.
Although HTML5 validation is not supported by all browsers, nowadays the form validation support is quite good, so we prefer favoring users with modern browsers and rely on server validation for users with older browsers.