title: Thymeleaf: how to use each but show default if no items are in list?
body: <p>I want to show a form that has a pre-filled list of objects and each of the object attributes as a field, retrieved from my database using Thymeleaf templates (that the user will then be able to edit). I understand I would use <code>th:each</code> to accomplish looping over each object in the returned list and creating the pre-filled form fields.</p>
  <p>However, if there are no items retrieved from the database, I want to still show a form corresponding to that objects attributes, only with the pre-filled values empty. How would I implement this? I cannot find details in the documentation.</p>