thymeleaf-spring-data-dialect
thymeleaf-spring-data-dialect copied to clipboard
The row number is going back to 1 again. Not continuing the result.
If We are using number of row/index number. The row number is going back to 1 again. Not continuing the result.
For example: If We have 15 rows of data. Then We add number of rows on it. It should be has 2 pages (Page 1 and Page 2). The data in page 1 should be 1 - 10. The data in page 2 should be 11- 15. But, I didn't like that. It start from 1 to 5 only on page 2.
mas @hendisantika I add syntax like this to deal with the problem
...
<tr th:with="add=(${mahasiswas.getNumber()}*${mahasiswas.getSize()})" th:each="mhs,iStat : ${mahasiswas}"> <td th:text="${iStat.index+1+add}"></td>
...
Nice.