Bug #73717
openvalidation results for child properties per property
0%
Description
When you have a model "pizza" with a property "toppings" being an object storage containing multiple "topping" objects, it is not possible to display validation results for each toppings' properties.
According to several sources (e.g. #70634), the way of building a form for a pizza with multiple toppings would look like this in fluid:
<f:for each="{pizza.toppings}" as="topping" iteration="i"> <f:form.textfield property="toppings.{i.index}.title" /> <!-- ... --> </f:for>
However, validation results fetched via f:form.validationResults don't have the same index. Outputting validationResults.flattenedErrors yields something like this:
array( pizza.toppings.0000000027a19482000000016f491783.title => array )
As far as I know for now, only by using functionality provided by the core, it is not possible to display errors for said properties. If there is a way, I'd be happy to see a clean, nice, and simple way. Otherwise, I consider this a bug or a missing feature, as I feel a framework should provide such functionality.
Assigning this to Category: Fluid for now, as it mainly depends on f:form.validationResults. Adding Claus as watcher as he provided a very explanative answer on #70634, which is marginally related to this issue.