175
rated 0 times
[
179]
[
4]
/ answers: 1 / hits: 23700
/ 6 Years ago, tue, july 3, 2018, 12:00:00
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?
More From » thymeleaf