I'm new in Spring Boot and now we want to rewrite our old PHP application in Java using Spring Boot 2 and Thymeleaf 3 as template engine.
Our legacy app has hundreds of forms with thousands of input fields. For this we use a simple template helper that makes it quite simple to render the input fields, labels and container divs. A small example:
FormBuilder::addInputField("Close","close_time",$data->getClose_time());
Generates:
<tr>
<th>Close:</th>
<td><input type="text" name="close_time" id="close_time_id" size="30" value=""> </td>
</tr>
How can I achieve this in Spring and Thymeleaf?