Bug #60556

Form VewiHelpers inside a Widget that is inside a f:form, are unaware of the surrounding form

Added by Christian Loock about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2014-07-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When I use a custom widget ViewHelper inside a f:form, I cannot use f:form.* ViewHelpers inside the widget, like I could inside the form itself:

Example. (Assume that foo is an object that has a property bar)

The for:
<f:form action="update" objectName="foo" object="{bar}">
<vendor:widget.baz/>

</f:form>

And inside the widget:

<f:form.textfield propery="bar"/>

Will result in a text field:

<input type="text" name="bar">

instead of

<input type="text" name="foo[bar]">

There should at least be an option to make this possible in widget, to be able to build more complex form controlls, that write into object properties.

Also available in: Atom PDF