Hello there! As I said on previous emails, I'm migrating a JSF app to tapestry, I'm about to finish. One thing that is really tricking me is the way that the Hibernate entities are bound on both frameworks (I might being doing something wrong here).
My edit page has an object (Event) that has a many-to-one relationship to User, so on the same screen I add/edit an user and an event. Well on the JSF, when I hit the service layer (both apps share the same model desing, with same entities and spring transaction managed classes) the Event has an user (that is a EnhancedByCGLIB user) with all it's original values (even those that are not displayed to the user on the screen), so calling: eventDAO.update(event), updates my user as well. On Tapestry side, hitting the service layer, the Event has a User (POJO) and all other values have just gone, it seems that tapestry, when binding it's values it does something like this: User user = new User(); ... //set properties present on the screen, dump all other from database event.setUser(user); This not only mess my database, but also makes hibernate to create a new user for my event, instead of updating an existing one. Well, I'm pretty sure I'm doing stupid things here, could anyone help me out? Best Regards Vinicius --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]