Originally posted by James Clark:
The records displayed via iterate tag should be in a form tag. When the user selects the record(s) and clicks the submit button for the form, then you can access the value for the checkbox(s) via ActionForm object associated with Action that handles form processing.
Check checkbox documentation at:
struts-html.html#checkbox
Originally posted by James Clark:
The records displayed via iterate tag should be in a form tag. When the user selects the record(s) and clicks the submit button for the form, then you can access the value for the checkbox(s) via ActionForm object associated with Action that handles form processing.
Check checkbox documentation at:
struts-html.html#checkbox
3. when the user checks any checkbox(even morethan one checkbox) i need to display the 4 text boxes below the row where the user checks the checkbox, with the existing values on it.
4. user can update one or more fields (even one or more rows, when the user checks more than one checkbox) and hit update
Originally posted by James Clark:
Don't try to stuff everything in one Action class. (1) Have an Action to handle when the user first makes the selection. Here you will get data values from form which identify rows to be edited. (2) Then have another Action to handle processing the changed data.
my question is how do we display the existing values in the textboxes (based on user checkbox selection)
ex: if the user clicks on 2nd checkbox we need to display the 2nd row detials in the textboxes. if the user clicks on 5th checkbox we have to display 5th row data in the textboxes....
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|