Thimeleaf page, if status checking is possible?

Thymeleaf html page if validation possible?

how to check this condition in thimeleaf ..

I tried this but did not work

<tr th:each="s : ${patterns}"> <h3><p th:text="${s.questionPattern}" /></h3> <tr th:each="q : ${questions}"> <!--This checking is possible ? --> <div th:if="${#s.questionPattern == q.questionPattern.questionPattern}"> <p><input type="text" th:text="${q.questionName}" /></div> </p> </tr> </tr> 

I know this is the wrong way

If you know the answer, please share.

+4
source share
1 answer

Using Thymeleaf if using it like

 <div th:if="${s.questionPattern ==q.questionPattern.questionPattern }"> 

no # character needed.

+4
source

Source: https://habr.com/ru/post/1500074/


All Articles