Newbie question!
I have a simple
jsf page that currently binds the form items to a session managed bean. On submit of the page, the session bean is then persisted to the database.
I have a concern if the page is used to edit existing data in the session bean, and the user decides to cancel the update, how do I stop this being in the session?
Is there a best practice for this in JSF? Should I have all form fields binding to a backing bean object and only then , on submission of the form, update the session bean?
I need to cater for the fact that a page may be updated via a address lookup button (for example) which will populate some of the values on the form.
Any help appreciated!