File tree 4 files changed +9
-3
lines changed
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages
spring-boot-starters/spring-boot-starter-thymeleaf
src/main/resources/META-INF
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html xmlns:th ="http://www.thymeleaf.org "
3
3
xmlns:layout ="http://www.ultraq.net.nz/web/thymeleaf/layout "
4
+ xmlns:data ="https://github.com/mxab/thymeleaf-extras-data-attribute "
4
5
layout:decorator ="layout ">
5
6
< head >
6
7
< title > Messages : View all</ title >
@@ -27,7 +28,7 @@ <h1 layout:fragment="header">Messages : View all</h1>
27
28
</ tr >
28
29
< tr th:each ="message : ${messages} ">
29
30
< td th:text ="${message.id} "> 1</ td >
30
- < td th:text ="${#calendars.format(message.created)} ">
31
+ < td th:text ="${#calendars.format(message.created)} " data:created =" ${message.created.timeInMillis} " >
31
32
July 11, 2012 2:17:16 PM CDT
32
33
</ td >
33
34
< td >
Original file line number Diff line number Diff line change 1
1
< html xmlns:th ="http://www.thymeleaf.org "
2
2
xmlns:layout ="http://www.ultraq.net.nz/web/thymeleaf/layout "
3
+ xmlns:data ="https://github.com/mxab/thymeleaf-extras-data-attribute "
3
4
layout:decorator ="layout ">
4
5
< head >
5
6
< title > Messages : View</ title >
@@ -22,7 +23,7 @@ <h1 layout:fragment="header">Messages : Create</h1>
22
23
< dt > ID</ dt >
23
24
< dd id ="id " th:text ="${message.id} "> 123</ dd >
24
25
< dt > Date</ dt >
25
- < dd id ="created "
26
+ < dd id ="created " data:created =" ${message.created.timeInMillis} "
26
27
th:text ="${#calendars.format(message.created)} ">
27
28
July 11, 2012 2:17:16 PM CDT
28
29
</ dd >
Original file line number Diff line number Diff line change 44
44
<groupId >nz.net.ultraq.thymeleaf</groupId >
45
45
<artifactId >thymeleaf-layout-dialect</artifactId >
46
46
</dependency >
47
+ <dependency >
48
+ <groupId >com.github.mxab.thymeleaf.extras</groupId >
49
+ <artifactId >thymeleaf-extras-data-attribute</artifactId >
50
+ </dependency >
47
51
</dependencies >
48
52
</project >
Original file line number Diff line number Diff line change 1
- provides: thymeleaf-spring4,thymeleaf-layout-dialect
1
+ provides: thymeleaf-spring4,thymeleaf-layout-dialect,thymeleaf-extras-data-attribute
You can’t perform that action at this time.
0 commit comments