Tutorial by Examples

You can use list variable to form <select> elements <select th:field="*{countries}"> <option th:each="country: ${countries}" th:value="${country.id}" th:text="#{${'selected.label.' + country.name}}"/> <...
<table id="countryList"> <thead> <tr> <th th:text="#{country.label.name}"> Country </th> <th th:text="#{country.label.capital}"> Capital </th> <th th:text="#{country.l...

Page 1 of 1