th:field와 th:value를 같이사용하게 되면 th:value는 무시되게 된다.
th:field는 id, name, value를 모두 설정하기 때문에
ref : https://stackoverflow.com/questions/33758200/thymeleaf-thfield-overwrites-thvalue
'Thymeleaf' 카테고리의 다른 글
[Thymeleaf] csrf 토큰 추가 (0) | 2023.06.19 |
---|---|
[Thymeleaf] 타임리프 날짜포맷 활용하기 (0) | 2023.06.01 |
[Thymeleaf] 자바스크립트 안에서 loop 돌기 (0) | 2023.05.30 |
[Thymeleaf] 타임리프를 활용하여 스프링 모델 값 가져오기 (0) | 2023.05.24 |
[Thymeleaf] LocalDate 원하는 날짜 형식으로 출력하기 (0) | 2022.09.13 |