Making sequence through nested th:each

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Making sequence through nested th:each

Hi guys.

I can not find similar question, hence I am writing this.

I want get a sequence number through nested th:each.
There is nested list of Spring model. I use it in Thymeleaf and loop the object with three `th:each`. As in Regions, Prefectures and areas.

I read some articles about `${#numbers.sequence(from,to)}`, but it is not the solution for me.
Anyone have good idea ? Or I should better make sequence from Server side or JavaScript ?