Hi,
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/edit1/1
describes an example where a BeanEditForm is used to edit some object and
update the database.
The example uses the following code:
// Form bubbles up the PREPARE_FOR_SUBMIT event during form submission.
void onPrepareForSubmit() throws Exception {
// Get objects for the form fields to overlay.
person = findPerson(personId);
}
When I implement the example and set a few breakpoints, every time this event
handler is called, the person object already is the same as is found by
findPerson(personId). I can't seem to find the reason that the handler
retrieves the same object from the database once again.
Is this done because of detached objects? Or is there some other reasoning
behind this?
Regards,
Daniel P.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]