• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Springboot-JPA-Thymeleaf -Bootstrap. How do I refresh a filtered table contents after updating a field using a Modal form

Resolved: Springboot-JPA-Thymeleaf -Bootstrap. How do I refresh a filtered table contents after updating a field using a Modal form

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have a table of projects populated with the below Controller code
I select a row to display a list of Assignments associated with a project
I then edit a row to change a value using a Modal Form and some JS
Then I write the update back to the database from the modal form
The modal closes and my list of assignments now has no rows.
How do I refresh the list of assignments, still filtered by the same ProjectId?

Answer:

If I understand your question correctly, then you do an AJAX request to get the information to show in the modal dialog and you use a regular form POST to actually update the information.
I guess that this snippet:
should be done like this:
This would redirect the user after the update to the correct URL to show the assignments for a given project id.

If you have better answer, please add a comment about this, thank you!

bootstrap-4 spring-data-jpa thymeleaf
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: TYPO3 SQL error: Field ‘tx_imagezoom_set’ doesn’t have a default value

26/03/2023

Resolved: std::regex_replace to replace multiple combinations

26/03/2023

Resolved: How can I copy files using the ansible.builtin.copy module and avoid conflicting file names?

26/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.