I have the requirement to create a wizard which will contain a dynamic list of steps, i.e. there are a predefined set of steps, but they can be repeated, performed in any order, etc, and these steps should be able to be removed, and so on.
If I were to do this with simple java beans then it is fairly trivial, but I think I might need to do it in SEAM, because I am coming from one SEAM HibernateEntitySearch managed page, launching the wizard to create a new set of objects, and then re-directing the user to a HibernateEntityHome managed page, where the user can add more objects to the newly created and saved set of objects.
Heres a brief explanation of the structure:
The problem with this approach is that because when the save is done, I seem to have to invoke a new session to be opened, which then causes the set of objects to be created in a different session than what is used on the Edit page, and then when I perform some modifications on the final page, I then get a NonUniqueObjectException thrown by Hibernate for one of the objects created in the Wizard when I call update.