<select th:field="*{lab.id}">
<!--- I want to add "Please select a lab" to the first in the list and the value must be empty-->
<option th:each="labentity : ${labsOptions}" th:value="${labentity.id}" th:text="${labentity.name}"></option>
</select>
thanks
I was confused about all those "th:" attributes, I'm guessing that these are from the Thymeleaf add-on. We're going to have to assume that you are, in fact, managing that page according to Thymeleaf's requirements, just as a JavaServer Faces page "doesn't work" if you attempt to render it without using JSF.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
Gift giving made easy with the permaculture playing cards