What I want is implemented below, where I will have three pages.
userList.xhtml: This will have a list of users in a dataTable. Onclicking the user, I will see the details of respective user in the next page (detailsOfUser.xhtml)
detailsOfUser.xhtml: This page will have the details of a user who was clicked on in the above page. On this page I will have an Edit
button, on clicking which I will get same values in textfield in next page (editUserDetails.xhtml)
editUserDetails.xhtml: Textfields with previous page user details. On this page I will have Save
button, on clicking which I will be redirect back to detailsOfUser.xhtml
where I will see that respective user updated values.
How should I use bean and scopes for those beans?
Should I use one bean for all three pages or three beans with different scopes?