This is an issue concerning when you bind data for a model, for example when submitting a form with a modelAttribute bound to it. If the item to be set is of a multidimensional type, the setter of the property will never be called.
When submitting the form, the "setName" is be called, but not the "setProductImageList".
I don't think this is intened?
The problem occurs in the class AbstractNestablePropertyAccessor in function processKeyedProperty. When using an array/list/vector or other multi-dimensional container, the function doesn't call the write method for the current PropertyHandler.
A fix would be to add this line of code
after this line
Then one would apply the same approach for "Map" and "Array" as well which is defined in the same function.
The text was updated successfully, but these errors were encountered:
This works as designed: Each such entry will be bound individually, dereferencing the list through its getter method and setting/adding the value at the corresponding index. A setter method for the entire list will only be called if a single value (e.g. comma-separated) is bound to the property itself, i.e. without any index, decomposing the value into a complete list of entries.