I'm using hibernate/cforms to build simple CRUD pages. These take the results from a query and create an ArrayList of beans, display a page worth of rows in a repeater, allow in place editting, and persist the results back to the database.
Hibernate handles row updates automatically. Insertions are handled in the flow by explicitly calling a hibernate save operation on any row with a null ID. Deletions are the problem. Hibernate requires that I explicitly call a delete method for each deleted row. Cforms doesn't keep track of deleted rows within a repeater so I believe that I need to do this as each delete event is fired. However, I don't know how to access the row inside the <wb:on-delete> tag or how to call some external Java from there. May be there's an easier way to accomplish this? Thanks for the response. joel Joel McConaughy Managing Partner Displayware LLC 800 Fifth Ave., #101-316 Seattle, WA 98104-3191 206-300-4732 Direct 206-382-2188 Fax [EMAIL PROTECTED] -----Original Message----- From: Marc Portier [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:46 PM To: [EMAIL PROTECTED] Subject: Re: wb:delete-bean? Joel McConaughy wrote: > Is there a delete equivalent to <wb:insert-bean>? I'd like to pick up wb:delete-node works for beans and xml files > the delete event and do some app-specific processing on the row before what do you mean with 'pickup the delete event?' execution of the binding (load/save) is not triggering any events of this kind > it is removed from the repeater with <wb:delete-node/> but don't know > how to access the row. Thanks. > maybe you can explain a bit more off what you try to achieve -marc= -- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- 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]