How do I submit a list when the submit event triggers on the form?
The Bind
of the selected value is being done correctly, but I need the list too.
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)