In part of my spring boot project, there is a page let user to select items in different drop down lists. Since the drop down lists are build with a list of object, I cant pass the selected result with their id as I do in other place. Is there any way or workaround for me to pass all the selected items to my controller?
<div th:each="group : ${groups}">
<label th:text="${group.name + ': '}"></label>
<select name="name" id ="id">
<option th:each="item: ${group.items}" th:object="${item}" th:value="${item.id}" th:text="${item.name}"></option>
</select>
<br>
</div>