Ryan,

I usually just discard the data object, other than properties on the
form, either displayed or hidden, that I need to identify it or populate
it. Then I reload it, update it, and finally update the DB when/if the
form is submitted.

-----Original Message-----
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 4:36 PM
To: [EMAIL PROTECTED]
Subject: How do you pass a data object for editing?


I'm interested in finding out how other people are passing data objects
between requests for updating.

For instance - 

User clicks "Edit Record"
I load the data object from the database, copy the properties to the
form, and put the data object in the session.
When the users presses save on the form, I get the data object from the
session, try and do a consistency check to make sure the key fields
match what is on the form, and do the update.

Is there a way to pass the data object with the form? Maybe via
serialization? That would keep it out of the session, and remove the
consistency check.

Thanks,
Ryan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to