Editing "Thymeleaf + Spring 3" Tutorial

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Editing "Thymeleaf + Spring 3" Tutorial

chu_lim
Good Day,

     Can anyone help me how to make a work around on how to edit the part of "Thymeleaf + Spring 3" exercise, where in the adding row portion you will change the "Seeds per cell" section from integer to
file-upload section.

Thanks in advance,

Reply | Threaded
Open this post in threaded view
|

Re: Editing "Thymeleaf + Spring 3" Tutorial

danielfernandez
Administrator
If you are trying to use a file-upload input, you can use them in Thymeleaf like you would in any other Spring MVC applications.

Just remember to use th:field like you'd do with other inputs:

<input type="file" th:field="*{myFormFieldProperty}" />

Regards,
Daniel.