[solved] print value in textarea in thymeleaf

  • Post author:
  • Post category:Bugs
  • Post comments:0 Comments
  • Post last modified:November 3, 2021
  • Reading time:1 mins read

How to print value in textarea in thymeleaf

 

Solution: Its very simple to print data in text-area using thymleaf tags.

<textarea name=”content” id=”editor” th:name=”body” th:field=”*{body}” rows=”10″ th:value=” ${publication.getBody}”>

 

Hope it helps…

Leave a Reply