Making Updates Persistent
Explore methods to make user edits persistent in your Thymeleaf and Spring Boot application. Learn how to refactor the TeamController and TeamService using parameter classes to ensure data updates are saved effectively, enhancing maintainability and the interaction between the web and domain layers.
We'll cover the following...
We'll cover the following...
Updating team controller
We can’t add or remove rows yet, but we can edit the values of each player via the rows that are rendered by Thymeleaf on the server. To make those edits persistent, we need to update TeamController.doEditTeam(). The controller currently looks like this:
We could expand ...