Hello! I'm starting to study thymeleaf next to Spring MVC and I came across a problem I can not solve.
I have a date field with the type="date"
component of HTML5 in a form, which works 100% when registering. However, when I use the form for editing, all form data is displayed in its HTML components, minus the date.
When analyzing the HTML source of the page the date is there, but it does not appear in the visual component.
<input type="date" class="form-control" id="data" name="data" value="03/03/1985">
When I use JSP / JSTL whenever the form opens for editing, the date in the HTML5 component already appears in the input, but it is not appearing with Thyemeleaf.
Does anyone know the reason and how to solve it? This is my input:
<input th:field="*{data}" type="date" class="form-control" />