Good morning, someone would tell me the correct way to use Thymeleaf's "th: if" with Spring MVC, I'm trying that way but I'm not getting it ..
th:if="${situacao_financeira} eq 'A'"
Good morning, someone would tell me the correct way to use Thymeleaf's "th: if" with Spring MVC, I'm trying that way but I'm not getting it ..
th:if="${situacao_financeira} eq 'A'"
It was as follows:
No model:
public boolean aPagar() {
if(situacao_financeira.equals("A"))
return true;
else
return false;
}
and in the View
<div class="form-group" th:if="${inscricao.aPagar()}">