a brief description of my situation: I have 2 models, Item and
SellerContactInfo. They have to be filled with data from the user, which
is done in a 2-step web form. I’m thinking heavily about the optimal way
to do this:
A) Create 2 actions inside the same controller, use the session to store
the Item object and persist both objects to the db after the 2nd form
has been completed,
B) Create both forms on one HTML page, switch between them by
showing/hiding DIVs. Problem in this case: if the user fills out the 2nd
form and then validation fails for the 1st form, he/she will be thrown
back at the first form which reduces usability in my opinion.
Anyone have a usable idea of how to optimally solve this situation?