Hi Dusty,

On 13 Nov 2007 at 21:02, dusty wrote:

> So it doesn't happen that often, but it just so happens I wrote what you
> described today!  ;-)
> 
> You create a table with each row representing your child objects.  Each html
> element should have the name parent.child[%{row.index}].childpropertyname. 
> The row part comes from <s:iterator status="row">

Thanks for the detailed description of your elegant solution.  I have one thing 
to clarify to try and fit it to my case.  I note from your code that "Add" and 
"Delete" actions on your equipmentCart list have their own methods on the 
action and that your "postCart" action simply returns a status flag.

In your example, I'm guessing that add and delete actions each occur within 
their own transaction, is that correct?  If you had a Parent record in this 
example, and some changes were made to that parent record, and the user 
added and deleted some children, and then decided to cancel, would the 
child record changes also be rolled back?

TIA,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to