David Newton wrote:This chunk of code perplexes me--I'm assuming index is never >= itemList.size(), otherwise wouldn't this loop until the computer melted?
Have to you verified that the indexed textarea is rendering correctly?
Why would partNumber be anything but null? Is there a form field or initialization for partNumber you haven't shown? All I see (with an admittedly hasty overview) is a <bean:write> tag.
David Newton wrote:IIRC copyProperties doesn't do a deep copy (could be wrong about that).
That aside, there's still no form elements for the partNumber, so it wouldn't be set on form submission.
Note that this method is intended to perform a "shallow copy" of the properties and so complex properties (for example, nested ones) will not be copied.
David Newton wrote:Put them in a hidden form element? <bean:write> isn't a form element, it just displays values--when a form is submitted only form elements are submitted, not random text on the page.
FYI, from http://commons.apache.org/beanutils/v1.8.0/apidocs/index.html:
Note that this method is intended to perform a "shallow copy" of the properties and so complex properties (for example, nested ones) will not be copied.
You get good luck from rubbing the belly of a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|