I have a problem with binding value to enum field in thymeleaf
<input type="hidden" th:field="${petDto.rating.finalRating}" th:value="${T(net.azurewebsites.mypet.domain.ratings.Scale).COOL}" />
I want to set enum value Scale.Cool to field finalRating which has type Scale. But in this way its not working. Thymeleaf do not bind value from th:value to th:field. Any idea?