Hi Daniel, Do you use Hibernate? Maybe your instance is stored in the Hibernate Session Cache thus you get the same object? I had a similar issue when working with HSQL/Hibernate...
Jens Von meinem iPhone gesendet > Am 08.05.2015 um 15:55 schrieb Poggenpohl, Daniel > <daniel.poggenp...@isst.fraunhofer.de>: > > 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: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org