26 - Display Selected Record in Edit Form using @PathVariable and findById()

preview_player
Показать описание
This is Part 26 of our complete application in Spring Boot (FleetMS version 2). In this part, we would allow the user to select a country from the list then the details is displayed in and edit form.

We would do the following:
00:01 - Adjust the links to thyleaf format (th:)
02:00 - Create the edit page by copying form the Add page
02:25 - Write the controller method to display the edit page
03:48 - Link to the edit page from the Country List page passing the id PathVariable
05:11 - Adjust the controller method to retrieve a single country base on the @PathVariable id
07:47 - Test the page functionality
08:31 - Display country data in the input fields using th:value attributes

You can find other parts here:

Feel free to connect with me

Please join us at International Computer Programmers here:

I'll appreciate your support
Рекомендации по теме
Комментарии
Автор

Hello Kindson. All the layout pages are working correctly only countryEdit doesn't seem to load css and jquery. Do you have an idea what could be the problem? Thank you very much for sharing your knowledge with us !

SeraR
Автор

Will there be a continuation of the first version of the project?

malishev_ivan
Автор

can i get the version 2 resources with the new layout !

tesfayegedle
Автор

Why you choose multipages such as countryAdd countryEdit instead of one page country with jquery popup to add and edit record Can you please tell us why you choose this way ? Thank you for you great job I appreciate bro

DocteurMalcolm
Автор

Hello Kindson. All the layout pages are working correctly only countryEdit doesn't seem to load css and jquery. Do you have an idea what could be the problem?

kareemahmed