Very new to ThymeLeaf, but have encountered a problem on a project I am working on. Getting the following error in the logs:
Exception evaluating SpringEL expression: "!searchResults.results.empty"
Looking at the offending code it is:
<th:block th:if="${!searchResults.results.empty}">
I assume that the placement of the exclamation mark (!) is incorrect. I have tried:
<th:block th:if="${not searchResults.results.empty}">
But same error evaluating. Can someone help me as to how to negate a check?