I have a input field, whose value is set by the controller by response.query, within the template I also have two links which perform read and delete calls to the id entered in the query. Here is the template.
<div class="input-group">
<input type="text" th:value="*{response.query}" />
<div class="input-group-btn">
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="#" th:href="@{/read/{id}(id=response.query)}">Read</a></li>
<li><a href="#" th:href="@{/delete/{id}(id=response.query)">Delete</a></li>
</ul>
</div>
</div>
Unfortunately, the href parameter always gets passed as null. Is there alternate approach to this?