thymeleaf-spring-data-dialect icon indicating copy to clipboard operation
thymeleaf-spring-data-dialect copied to clipboard

The row number is going back to 1 again. Not continuing the result.

Open hendisantika opened this issue 5 years ago • 2 comments

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.

Screen Shot 2020-04-06 at 13 44 57 Screen Shot 2020-04-06 at 13 45 16

hendisantika avatar Apr 06 '20 06:04 hendisantika

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> ...

0d3ng avatar Apr 25 '20 22:04 0d3ng

Nice.

hendisantika avatar Apr 26 '20 01:04 hendisantika