[FLOW3-general] Nested Forms

Carsten Bleicker carsten at bleicker.de
Mon May 21 11:55:59 CEST 2012


i have 2 models and just wrote for any model a fluid partial.
each partial has <f:input.textfield property="title" />
object1 is owning object2 on property "subObject".


i want to use these partial now in a nested form:
<f:form object="{myObject}" objectName="newObject1">
	<f:render partial="object1" />
	<f:render partial="object2" />
</f:form>

resulting name for object2 is name="newObject1[title]" wich should be name="newObject1[subObject][title]"
because i want to reuse the partial wich contains just fields for a model in different nested forms.
is it possible to do this just by adding arguments to the partialViewHelper?
i dont know how to handle this :(

my first idea was to write a <f:nestedForm> wich extends the templateVarialbes of <f:form> and restores them after finishing the
child renderings. good or bad idea? i am totaly unsure.

thanks
carsten 


More information about the FLOW3-general mailing list