Error na edição de dados | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por Laryssa

1 mês, 1 semana atrás Laryssa

Error na edição de dados

Quando tento realizar a edição de dados estou tendo esse erro ``` <form action="" th:action="@{/users/useredit/{id}(id = ${user.id})}" th:object="${user}" th:method="post"> <input type="hidden" th:field="*{id}"/> <div class="row"> <div class="form-group col-md-6 col-xs-12"> <input type="text" th:field="*{name}" name="name" placeholder="Enter user name:" class="form-control" /> <span class="text-danger" th:if="${#fields.hasErrors('name')}" th:errors="*{name}">User name error</span> </div> <div class="form-group col-md-6 col-xs-12"> <input type="text" th:field="*{lastName}" name="lastName" placeholder="Enter user lastname:" class="form-control" /> <span class="text-danger" th:if="${#fields.hasErrors('lastName')}" th:errors="*{lastName}">User Lastname error</span> </div> </div> <div class="form-group"> <input type="email" th:field="*{email}" name="email" placeholder="Enter user email:" class="form-control" /> <span class="text-danger" th:if="${#fields.hasErrors('email')}" th:errors="*{email}">User email error</span> </div> <div class="form-group"> <input type="password" th:field="*{password}" name="password" placeholder="Enter user password:" class="form-control" /> <span class="text-danger" th:if="${#fields.hasErrors('password')}" th:errors="*{password}">User password error</span> </div> <div class="form-group"> <label class="custom-control custom-checkbox"> <input type="checkbox" th:field="*{active}" class="custom-control-input" /> <span class="custom-control-indicator"></span> <span class="custom-control-description">Active?</span> </label> </div> <div class="form-group"> <button type="submit" class="btn btn-primary">Save</button> </div> </form> ``` Error no console ``` Error during execution of processor 'org.thymeleaf.spring5.processor.SpringInputGeneralFieldTagProcessor' (template: "users/edit" - line 14, col 26) ```

3 Respostas