79219658

Date: 2024-11-24 08:37:10
Score: 1
Natty:
Report link

I am not sure if this is the correct way, but it works. Change the form to:

<form th:action="@{/happyEat/shopping-lists/create}"
          th:method="POST"
          th:object="${__${objectForForm}__}">

and in the call hand over a String:

<div th:replace="~{fragment/form :: formWithContent(
                        ~{fragment/shopping-list/input :: create},
                        'shoppingListCreateRequest)'}">
    </div>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bianca