Title: Problem in insert mode from within a child form.

On my JSP, I have two (db) forms, the parent (Client) and the child (Client purchases).  All my parent fields are read-only, therefore the end-user can only add / modify /delete purchases.  All buttons (Insert, Update, Delete) are found in the child form's footer. I am using associated radio buttons to mark items for a given action.  I have also added a row of empty text fields in the footer to allow the user to input a new purchase.  Both forms are set to redisplayFieldsOnError = true.




My problem is as follows:

When I modify a purchase and there is a validation error (commons-validator), the JSP is redisplayed as I would expect (All input fields are re-populated - error messages are displayed).  However, if a validation error occurs when adding a new (insert mode) purchase, the JSP is rendered with empty values for all parent (Client) and child (Purchases) fields.





I haven't been able to pinpoint why the forms are not being repopulated in INSERT Mode.  Any suggestions on where I should start looking?


Reply via email to