Otóż mam problem, Thymeleaf na stronie wyświetla mi w tabeli tylko ostatni element mojej kolekcji, co w tym kodzie jest pomieszane?
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<link href="css/styles.css" rel="stylesheet"/>
<title>WELCOME</title>
</head>
<body>
<h1>WELCOME!</h1>
<img th:src="@{/assets/someimg.png}"/>
<p>To jest tekst który wam wyświetlę poniżej</p>
<span th:text = "${firstprofile.name}">JAKIS TEKST</span>
<div class="lista" th:unless = "${#lists.isEmpty(lista)}">
<table class="table datatable">
<tbody>
<tr th:each ="lista : ${lista}">
<td th:text = "${lista.id}">ID</td>
<td th:text = "${lista.name}">NAME</td>
</tr>
</tbody>
</table>
</div>
</br>
<p>NO TO COS POSZLO NIE TAK :(((((</p>
</body>
</html>