Task #9950
Task #26664: Clean up Form ViewHelpers
Task #26658: Make Form ViewHelpers consistent
Binding to nested arrays impossible for form-elements
0%
Description
I want to bind my form to an array with variable nested arrays. I already extended form and set the formName to ---ignore--- to trigger the objectAccessor-Mode - works so far. Now all names are generated perfectly but there is a useless check in getPropertyValue() that makes it impossible to get a value of sth. like
<fh:form object="{gp}" fieldNamePrefix="gp"> <f:textfield property="bla.blubb"/> </form> <!-- Which renders to: --> <form...> <input type="text" name="gp[bla][blub]"/> </form>
The value can not be detected because there is a check for array in AbstractFormFieldViewHelper on line 152.
As far as i can see this check is useless as the Tx_Extbase_Reflection_ObjectAccess::getPropertyPath($formObject, $propertyName); can handle arrays too. So i would be very happy, if you could remove it :)