Thymeleaf - Form validation and error messages

once we type in the text box & move out from the text box, Is that possible to show an validation error messages dynamically. Now It's able show the validation error messages when we submit the form.

Upvotes: 0

Views: 603

Answers (1)

Iwo Kucharski
Iwo Kucharski

Reputation: 3825

Using only Thymeleaf is impossible, because field content is validated on server side (after form submission). You can validate some types of content in html5 like here. Another, more complicated but also more powerful way is to use AngularJS(example) or JQuery(another example)

HTH

Upvotes: 1

Related Questions