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.
Once I press submit I am going to an action where I try and collect the values from the second select box.
I have tried to retrieve them using:
but this always returned null.
Just to test I tried to return the values from the first box but this also returns null so I'm not sure what's going on. It collects the values from all other parameters on the form, just not for this one.
Anyone ever done this before? Know how to make it work?
Hope this helps, let me know if you didn't understand any of it
I have two multi-select boxes and I want to beable to remove value(s) from one and add it/them to the other (and vice versa). I have 3 submit buttons one add (takes value from right select box and places it in left select box) one remove (takes value from left select box and places it in right select box) and then save which saves changes the database accordingly. My actual actionform has 4 string types: member, notMember, selMember, notSelMember (member and not Member are the two multi select boxes).
inside the action class depending on the value of myAction, I add/subtract values in (notS)/(s)elmembers from the members/notmembers array.
I keep getting a "property members returns null" exception even though I'm setting the members property inside the action class.
I've even tried to store values for members/not members in the request b/c I think the above code might return null for the property members as its not part of the form.