Lance-
That works as long as you can pre-populate your field before clicking
the editAction button. Recall that our "Add Field" button, via
JavaScript, adds a new row to the table and by default the textfield is
empty so the only way we would be able to retrieve the user's input
would be to
d/modified/removed. It would be awesome if Struts
did this automatically on form submittal but I'm not sure it can.
Hope that was clear. Thanks,
-Adam
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 01 August 2006 04:04
To: Struts Users Mailing List
I do this using 3 actions
loadAction - called first time the page is loaded, populates the form with
values from the db, the form has "session" scope.
editAction - called by a click on the add or delete button, adds or removes
a row from the form. Add and delete buttons should post to this action
Adam Gordon ha scritto:
We have a table which we populate with a user's choice of custom
registration fields (name, email, phone, company, etc...).
Probably this can help you:
http://struts.apache.org/1.x/userGuide/building_controller.html
Go to section: 4.3.3 Map-backed ActionForms (Adam, than
4 matches
Mail list logo