title: How can I create dynamic table in Thymeleaf..?
body: <p>I am new to Thymeleaf and trying to create a dynamic table on Themeleaf template.</p>
  
  <p>How can I do it..??</p>
  
  <p>I have been googling by I didn't got any proper answer. The issue is I cannot iterate List&lt; Map&lt; String,Object >>. I can have any number of columns and columns name could be any thing.</p>
  
  <pre><code>&lt;tr class="headings"&gt;
   &lt;th class="column-title"&gt;ID&lt;/th&gt;
   &lt;th class="column-title"&gt;Name&lt;/th&gt;
   &lt;th class="column-title"&gt;Salary&lt;/th&gt;
   &lt;th class="column-title"&gt;Status&lt;/th&gt;  
   &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
   &lt;tr class="even pointer" th:each="row:${rows}" id = "tablerow"&gt;
   &lt;td class=" " th:text="${row.getId()}"&gt;Id&lt;/td&gt;
   &lt;td class=" " th:text="${row.getName()}"&gt;Name&lt;/td&gt;
   &lt;td class=" " th:utext="${row.getSalary()}"&gt;Salary&lt;/td&gt;
   &lt;td class=" " th:text="${row.getStatus()}"&gt;Active&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>I need to set values dynamically since if query of result will keep changing . right now column name are hard coded and value are also getting by <strong>row.getId</strong> what if there is no Id, it could be anything in rows what shall I use than..? example row.&lt;>.
  rows is obtained as List&lt; Map&lt; String, Object>>.</p>
  
  <p>Thanks in advance.</p>