title: Thymeleaf: How to use #numbers.sequence() with a variable limit?
body: <p>I'm calling an int value from a database to determine the number of stars that should be displayed in my html using thymeleaf and Spring Boot, but using ${#numbers.sequence(1,obj.stars)} doesn't seem to work.</p>
  
  <p>this is my html-thymeleaf code:</p>
  
  <pre><code>    &lt;tr th:each="obj : ${allObjs}" class="pointer" th:onclick="'javascript:openobj(\'' + ${obj.id} + '\');'"&gt;
      &lt;td class="text-center" th:text="${obj.id}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.code}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.name}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.contract}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.difficulty}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.priority}"&gt;&lt;/td&gt;
      &lt;td class="text-center"&gt;
          &lt;!--this is the line I can't get to work :(--&gt;
          &lt;span class="fa fa-star-o" th:each="star:${#numbers.sequence(1,obj.stars)}"&gt;&lt;/span&gt; 
      &lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.state}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.percent}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.term}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.version}"&gt;&lt;/td&gt;
      &lt;td class="text-center" th:text="${obj.price}"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>and my controller</p>
  
  <pre><code> @GetMapping("/Obj")
   public ModelAndView index() {
        ModelAndView view = new ModelAndView("/Obj/index");
        view.addObject("title", "Obj");
        List&lt;Obj&gt; allObjs = ObjService.findAll();
        view.addObject("allObjs", allObjs);
        return view;
   }
  </code></pre>