I\'m using Thymeleaf with spring mvc 4 but I have a problem when I want to print a list size
Try using the utility method for org.thymeleaf.expression.Lists
:
<td th:text="${#lists.size(u.engines)}">[Engine Size]</td>
Besides the util method vphilipnyc described, instead of list.size, use list.size().
When writing list.size, it's trying to call list.getSize() and an List (or a collection) doesn't have a getter named like this.