I have a JSF page with a form. When the form is submitted, a backing bean is called. The backing bean creates the entity object, saves it in the database, sends notifications, etc. and then redirects to a confirmation page that shows some data of the created entity.
The problem is this confirmation page does not show the data: the entity object is reseted because the backing bean is ViewScoped.
I could change the bean to SessionScoped, but I don't think is appropiate, plus then I will have to reset the entity manually everytime the form is submitted.
I could also send the entity id to the confirmation page through a GET request and have it pull the entity from the database, but I wonder if there is a better way to do this.
Thank you very much.