java - List all available model attributes in Thymeleaf -


for debugging purposes list all model attributes available thymeleaf template while rendering.

something like:

<table>     <tr th:each="model : ${*}">         <td th:text="${model}"></td>     </tr> </table> 

but that's nonsense, , well-deserved error. (org.springframework.expression.spel.spelparseexception: el1070e:(pos 0): problem parsing left operand)

is there way of outputting such debug information? i'd settle logging output.

or, thymeleaf provide similar struts 2's struts.devmode added debug section @ bottom of page listing available properties?

try this:

<table> <tr th:each="var : ${#vars}">     <td th:text="${var.key}"></td>     <td th:text="${var.value}"></td> </tr> </table> 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -