[TYPO3-mvc] Write on two objects with one form

Sebastian Kurfürst sebastian at typo3.org
Thu Dec 31 11:41:31 CET 2009


Hi Boris,

this partly works right now.

In case you have two completely separate objects, it will not work yet,
although only a little viewhelper is needed to make that work - I
imagine that it could be used like that lateron:

<f:form ...>
  <f:form.bind object="{myObject}" name="user">
    <f:form.textbox property="name" />
  </f:form.bind>

  <f:form.bind object="{bla}" name="address">
    <f:form.textbox property="zip" />
  </f:form.bind>
</f:form>

If the one object is a child of the other object, it already works:

<f:form name="person" object="{person}">
  <f:form.textbox property="name" />
  <f:form.textbox property="address.zip" /> <-- will work on the ZIP code
</f:form>

I hope this helps :)

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list