Very new to Thymeleaf so please excuse any obvious errors. I've been trying to search for this answer but actually struggling to come up with a google spell to get the answer.
I'm setting up a project using Thymeleaf and want to build a 'library' of fragments for standard controls. So all devs use the same. example below. The code below works great most of the time, the problem is when the calling page has not been passed in an object from the controller . . the #fields utility object blows up with a parsing exception.
Question is, can I somehow check if #fields is null/missing and bypass. Or is there a better way of implementing my library of standard fragments for controls . . . what do others do?