Spring and Thymeleaf: Sending an object to a controller from a th:each table

前端 未结 3 1524
再見小時候
再見小時候 2021-01-21 18:31

I am making a table of experience data using the th:each attribute with Thymeleaf and my goal is to have a submit button in each row that, when

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 19:01

    You need to fill your form with inputs as the inputs get sent:

    This will hide your object data from user but when they click on submit, it will send the object data as required (rather than having empty form sent as you have it currently).

提交回复
热议问题