How to get radio th:field value in back-end (binding Thymeleaf)
<input type=”radio” th:field=”*{questoes[__${iter.index}__].respostaCorreta}” th:value=”${alternativa.texto}”> I’m working on a project using Thymeleaf and Spring Boot. In my form, I have a set of radio buttons generated dynamically using Thymeleaf. Each radio button is associated with a text input field, and I’m using th:field and th:value attributes to bind the input values. However, when I submit the […]
How to create both backend and fronted project with java spring boot
It is necessary to create a separate project for java spring boot and frontend and backend. I am doing the frontend, with spring boot thymeleaf (html css bootsrap js). I made the endpoint coming from the backend with Postmande mock server. But I am giving the url manually in the controller. Is there a different way to do this? Or what should happen?
Updating/passing a variable form html using Thymeleaf to Java code, on button press (SPRING)
I’m very new to Thymeleaf and am trying to use a bootstrap radio button that will pass data down to java code to be used in a java application
Is it possible to use fragments optionally in thyemleaf?
In SpringBoot3, I made a code with fragments like this.