[TYPO3-mvc] Model object tree building with Tx_Extbase_Persistence_ObjectStorage property
Franz Koch
typo3.RemoveForMessage at elements-net.de
Sat Oct 2 10:31:01 CEST 2010
Hey Claus,
> It is working now. I use your loop except the map.
>
> <f:for each="{entry.company.contact}" as="contact">
> <f:form.textbox property="company.contact.0.forename" id="forename"
> value="{contact.forename}"/>
> <br />
>
> <f:form.textbox property="company.contact.0.lastname" id="lastname"
> value="{contact.lastname}"/>
> <br />
> </f:for>
well, this of course only works as long as you only allow one person to
be added/edited.
> As I mention before contact.uid is uninitialized until persisting,
> therefore I don't need the condition.
You will need it once it's persisted and you allow editing of existing
records. Otherwise you'll always delete the old person and create a new
one, getting a new UID. Just keep that in mind.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list