Hi, I can't imagine that I'm the only one with the following situation.
I have a page which edits an 'Employee'. Since I use hibernate and spring I use the LDM togeather with the OpenSessionInView. This works great (==No more LazyLoadExceptions at all...) But.... The Employee has a propertie accounts, which is a collection of Account objects. I'm showing these objects using a Listview. Now I want to add an Ajax link ('Add new account), which adds a fresh new Account object. I add the containing form to the AjaxRequestTarget so the ListView refreshes. Unfortunately, this approach never works, since my Employee is always reloaded from the database each reques. (I even think the same problem shows up when you do the same without ajax..) What is the best approach to deal with this? -- Pieter Degraeuwe Systemworks bvba Belgiƫlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be