Bind de Collection with Spring 4 and Thymeleaf

Asked

Viewed 154 times

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) 
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.