MensagensErroValidacao.html
524 Bytes
<!DOCTYPE html>
<html lang="pt" xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<div class="alert alert-danger alert-dismissible" role="alert" th:if="${#fields.hasAnyErrors()}" th:fragment="mensagemErro">
<button type="button" class="close" data-dismiss="alert" ><span aria-hidden="true">×</span></button>
<th:block th:each="detailedError : ${#fields.detailedErrors()}">
<div><i class="fa fa-exclamation-circle"></i> [[${detailedError.message}]]</div>
</th:block>
</div>
</html>