#dates & href in <tr>

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

#dates & href in <tr>

2. When I try to format a date like so:

The date values coming from java to Thymeleaf look like : 2017-01-25 19:26:00.0

I get an error when I try to access the html page:

*** browser text ****
Thu Mar 30 11:44:33 NZDT 2017
There was an unexpected error (type=Internal Server Error, status=500).
Error formatting date with format pattern "dd/mm/yyyy HH:mm" (dashboard:60)

*** console ***

java.lang.IllegalArgumentException: Cannot apply format on null




I am using Thymeleaf with Springboot in HTML. I have two parts to this question:

1. Are th:each and th:href allowed to be combined like so (because in the browser there is no indication that there is a href):