("@Inheritance(strategy = InheritanceType.JOINED)")
<form action="#" th:action="@{/order/save}" th:object="${form}" method="post"> <fieldset> <input type="submit" id="submitButton" th:value="Save"> <input type="reset" id="resetButton" name="reset" th:value="Reset"/> <table> <thead> <tr> <th> Title</th> <th> Author</th> </tr> </thead> <tbody> <tr th:each="order, itemStat : *{orders}"> <td><input th:field="*{orders[__${itemStat.index}__].title}" /></td> <td><input th:field="*{orders[__${itemStat.index}__].author}" /></td> </tr> </tbody> </table> </fieldset> </form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)