I have JSF project. I have JPA entities to persist the data. In frontend the user can edit the detached entities and send the date to backend by clicking a save button.
But it is possible that the user forgets to save the data and click on another page in the project. In this case the application should warn the user that the user loose the unsaved data.
Is it possible to check that the detached entity is changed or not??