thymeleaf Using Lists with Thymeleaf Using list in select


Example

You can use list variable to form <select> elements

 <select th:field="*{countries}">
     <option th:each="country: ${countries}"
             th:value="${country.id}"
             th:text="#{${'selected.label.' + country.name}}"/>
</select>