0
Hello! I’m starting to study Hymeleaf with Spring MVC and I came across a problem that I can’t solve.
I have a date field with the component type="date"
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 parsing the page’s HTML source code the date is there, but 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 fix it? That’s my input:
<input th:field="*{data}" type="date" class="form-control" />