This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi there, I'm stuck for 2 days trying to load a checkbox value, from the Action Form.
I need to delete all the selected items from an ArrayList<Person>, so I iterate this list, and put a checkbox before each item.
But when I click the button to delete the selected items, the Action Form reads the ArrayList, but the checkbox field is still empty. I'm clueless and I appreciate any help.
It has been a lot of time since I worked with the UI. But I remember a few things ...
If you wan't to hold the state of the checkboxes, when you paginate, you need to submit the values. (form)
Another way to do it, is an ajax method while you select an individual checkbox
If you unselect a check, the value doesn't go to the server, so I remember I needed to add a hidden tag with value=false.