Thymeleaf validation for nested java classes
I have two entities(java classes), User and Address in my spring MVC Thymeleaf app.
User class contains a field of the Address class and refers to it.
I have a Thymeleaf form which contains input elements to receive data for the User and Address entities.
When I want to validate the form on submitting, no errors and no validation for the fields of the Address entity happen. But validation and displaying errors for the User entity work fine.
Thymeleaf validation for nested entity classes
I have two entities(java classes), User and Address in my spring MVC Thymeleaf app.
User class contains a field of the Address class and refers to it.
I have a Thymeleaf form which contains input elements to receive data for the User and Address entities.
When I want to validate the form on submitting, no errors and no validation for the fields of the Address entity happen. But validation and displaying errors for the User entity work fine.