1
How do I submit a list when the Submit event fires in the form?
The Bind
of the selected value is being done correctly, but I need the list as well.
HTML
<select id="banks"
th:field="*{bankID}"
class="form-control">
<option value=""
th:text="Selecione">
</option>
<option th:each="bank,rowStat : *{banks}"
th:name="banks"
th:value="${{bank.id}}"
th:text="${bank.name}">
</option>
Controller
public ModelAndView list(@Valid CheckSearchForm form, final BindingResult bindingResult)