Vishwanth: Merged my changes of Thymeleaf POC (Proof of Concept)

This commit is contained in:
vkadapa
2015-12-18 06:37:00 +05:30
parent c654cb1831
commit c55dddfcfb
9 changed files with 247 additions and 44 deletions
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<div th:fragment="footer1">&copy; 2013 Footer</div>
</body>
</html>
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
</head>
<body>
<span th:text="#{welcome.text}">Hi</span>
<span th:text="${name}"> John </span>!
<span custom:name="James">Test</span>
<div th:replace="footer :: footer1">&copy; 2013 The Static
Templates</div>
</body>
</html>
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Thymeleaf Spring Example</title>
</head>
<body>
Hello John!
<br></br>
<div>Please confirm your details</div>
<br></br>
<form action="#" th:action="@{/processForm}" th:object="${user}"
method="post">
<table>
<tr>
<td>Firstname :</td>
<td><input type="text" value="Firstname"
th:field="*{firstname}" /></td>
</tr>
<tr>
<td>Lastname :</td>
<td><input type="text" value="Lastname"
th:field="*{lastname}" /></td>
</tr>
<tr>
<td>EmailId :</td>
<td><input type="text" value="emailId"
th:field="*{emailId}" /></td>
</tr>
<tr>
<td align="center"><input type="submit" /></td>
</tr>
</table>
</form>
</body>
</html>