How to add rows to a UIData datable without persisting to the DAO?
Here's a brain-twister. I'm using JSF for the following:
I have a "main" page that lists Tasks. The user is able to click on a task to navigate to a Task Editor page, where they can edit information. Each Task has a list of Task Administrator emails, and the Task Editor page displays them in an h:dataTable.
What I'd like to be able to do is allow the user to click on an "Add" link to create new entries to the Task Administrators dataTable, but not save this information to the database until they click the "save" button. If I keep the Task Editor page's backing bean in the session scope, this is trivial, but if I do that, then the bean is not re-initialized when the user selects a different Task from the main page (since intialization occurs in the constructor of the Task Editor's backing bean). If I keep the backing bean in the request scope, then it's re-initialized every time Faces instantiates it, which basically clears out the admin emails table and reloads it from the database.
How can I go about allowing the user to add items to the emails dataTable?

