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 almost 5 years ago. Updated almost 4 years ago.

Status:New Start date:2010-09-27
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:ViewHelpers
Target version:-
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 :)

History

#1 Updated by Sebastian Kurfuerst about 4 years ago

  • Parent task set to #26658

#2 Updated by Robert Lemke almost 4 years ago

  • Target version changed from 1.0 beta 2 to 1.0.0

#3 Updated by Karsten Dambekalns almost 4 years ago

  • Target version deleted (1.0.0)

Also available in: Atom PDF