I use hibernate pojo objects as entities. So in edit listener I populate object from database and set it in persistent property on edit page. Every field component (e.g. login, password) is attached directly to entity object's property with value biding so after update there's changed entity object in persistent property and could be saved into database.
2005/9/16, Dan Diephouse <[EMAIL PROTECTED]>: > Howdy, > I'm using T4 and a bit confused about how to create update screens. Let > me explain. I have a User class which I pull from the database. I have a > form which updates to properties (of many) on the User object: login and > password. > > When I first click on "edit user" I have a edit() function which > populates MyPage.user from the database. I have a save() method which > is triggered by a button on the edit form. When I click save() I want to > pull the User from the DB and then have the login/password fields > updated on that User object. But Tapestry always wants to create the > User object itself via ognl it seems. > > How can I get it from the DB on the update? > > Thanks, > > - Dan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
