Trouble with server side form validation (Spring Boot + Thymeleaf)

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

Trouble with server side form validation (Spring Boot + Thymeleaf)

Stressed505
All of the guides on the internet that show how to do this seem simple enough, but the problem is that they only show how to do it when html page consists of a single form.

My login and registration forms are embedded in a navbar fragment. I'm having trouble figuring out how to get Thymeleaf to resolve my User object in the fragment, much less figure out how to get the controller to reload the page properly (form w/ error messages + the index page)

What should I do?