Guten Abend!
ich habe eine html Seite:
und Controller:
ich habe vor, ein Flag mitzusenden, falls man auf button geklickt hat, um Backendseitig zu unterscheiden, komme aber nicht voran.
Danke im Voraus.
ich habe eine html Seite:
Code:
<form action="#" id="huhuForm" th:object="${oTaskViewModel}" th:action="@{${actionHuhu}}" method="post">
...
<div class="...">
<input class="xxx" type="button" onclick="$('#huhuForm').submit()" th:value="#{huhu.label}"/>
</div>
Code:
@PostMapping(HUHU + "/{taskId}/huhu")
public ModelAndView taskHuhu(@PathVariable(value = "taskId") Long taskId,
@ModelAttribute @Valid OTaskViewModel oTaskViewModel,
BindingResult bindingResult, Principal principal ) {
...
...
return null;
}
Danke im Voraus.