This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am stumped with this problem that I have. Any pointers to the solution or related documentation would be greatly appreciated.
My JSP has nested iterators, and the deepest one has a listbox, like so:
The generated source code looks like this:
And it seems to look alright to me. But submit causes a problem because it is not able to find a setter. I am not exactly sure where or how I would write this setter. I have a setter/getter for ProductBOs in the action class. The ProductBO class has a setter for the attributeBOs. What else do I need?
[ December 21, 2008: Message edited by: Casey Cox ] [ December 21, 2008: Message edited by: Casey Cox ]
Joined: Nov 28, 2008
Well, it seems like I had to declare my object as an Arraylist in the Action, like so: ArrayList productBOs; instead of ProductBO productBOs;
So, now I am able to submit the jsp without running into an exception, but I don't get the values in my action.
I can see the setter being called, but the argument is always non null and empty!!
I think I found a way to get my stuff to work. I made my action implement ParameterAware and the jsp values are now available in the map. I am not sure if this is the correct way to do it, but it does seem to fulfil my needs, in a somewhat roundabout way.
I have been working on this for almost 2 days, and even though I have a possible solution in hand, I don't feel any relief, only a vague sense of anti-climax..