Iterate tag - only the first value of the form variable received when submitted.
posted 6 years ago
I use an ArrayList to iterate and build textboxes inside that. When that form is submitted, only the first value (first textbox) is sent.
If I use String array in getter and setter, I face ClassCast problem when the page gets loaded first time. Following is my code. Can any one help me to figure out where I am doing wrong? Thanks guys.
Data gets displayed when the page loads first time.
When submitting, only the first value of every month are passed (there can be multiple rows - say multiple January values). Only the first of that gets to Action.
Not sure where I go wrong.