Example:
<div th:object="${sourceDTO}" th:with="targetDTO=${new targetDTO()}">
Example:
<input type="text" th:value="${sourceDTO.name}" th:field="*{name}">
In this example, the value of the "name" property in the sourceDTO is transferred to the "name" property in the targetDTO.
Example:
<p th:text="${targetDTO.name}"></p>
In this example, the value of the "name" property in the targetDTO is displayed in a paragraph element in the HTML template.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-07-06 15:52:05 +0000
Seen: 11 times
Last updated: Jul 06 '23
How can I set up a simple HTML template in Visual Studio Code?
Is there a 64KB constraint in AEM's HTML Template Language (HTL/Sightly) as there is in JSP?
How to ensure a page break when creating Velocity HTML resumes?
What is the problem that arises when importing dynamic components in React with SSR?
What does an "Invalid Equation" error signify while creating HTML and MD reports using knitr?
In what way can I acquire the HTML source in C#?
Is it possible to have a HTML slider with two inputs?
How can HTML be integrated with Appjs React?
What is the reason behind getting the error message "File not found" in HTML?
What is the HTML tag for the title of the Divi Accordion module?