I\'ve got a form where I want to edit some user data. So the already stored data is put as th:value and after sending I validate with spring validation and want to give back the
Attribute th:field will replace attributes value, id and name in your input tag.
Instead, use plain th:id, th:value and th:name without using th:field. Then you will get what you wanted.
Then it will look like:
Similar answer is here: How to set thymeleaf th:field value from other variable