I have more than 300 controllers. I would like to have one and only one HTML page for all controllers.
I know to make loop over a list like this in thyeleaf.
<tbody>
<tr th:each="client : ${customerList}">
<td th:text="${client.getClientID()}"></td>
<td th:text="${client.getIpAddress()}"></td>
<td th:text="${client.getDescription()}"></td>
</tr>
</tbody>
But how to iterate over any list without specifying properties like clientID
or ipAddress
or description?
And be able to do something like this with generic operation:
<td><a th:href="'/delete/' + ${client.getClientID}">Delete</a></td>
<td><a th:href="'/edit/' + ${client.getClientID}">Edit</a></td>
hope to be clear
Please see picture.