Task #9950

Task #26664: Clean up Form ViewHelpers

Task #26658: Make Form ViewHelpers consistent

Binding to nested arrays impossible for form-elements

Added by Christian Opitz over 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
ViewHelpers
Target version:
-
Start date:
2010-09-27
Due date:
% Done:

0%

Estimated time:
Has patch:

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 :)

#1

Updated by Sebastian Kurfuerst about 10 years ago

  • Parent task set to #26658
#2

Updated by Robert Lemke almost 10 years ago

  • Target version changed from 1.0 beta 2 to 1.0.0
#3

Updated by Karsten Dambekalns over 9 years ago

  • Target version deleted (1.0.0)

Also available in: Atom PDF