Bind Collection with Spring 4 and Thymeleaf

1

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) 
    
asked by anonymous 01.11.2014 / 23:04

0 answers