[FLOW3-general] Embed forms for IRRE like editing?
Peter Niederlag
typo3-list at niekom.de
Wed Apr 6 11:00:10 CEST 2011
Hello,
Am 28.03.2011 00:17, schrieb Tolleiv Nietsch:
> Hi,
[...]
> The next attempt was:
> ...
> <f:for each="{foo.bars}" as="{bar}" key="id">
> <f:form.textbox property="bar.{id}.property" />
> </f:for>
> ...
> Which renders something "more" convenient "<input type="text" value=""
> name="foo[bar][0][property]">"
> But submitting that back to the controller will break with a
> "#1296763314: Could not transform to object" exception :(
>
> Any ideas? Thanks for your help :)
Just keep trying... ;(
id=0 seems wrong to me. bar has an identity, so in order to
modify/update it one would need that identity. You should be able to get
it via {bar.uid}.
<input type="text" value="test" name="foo[bar][12][property]">
maybe does the trick?
From my experience this always (at least with extbase) involves a good
amount of "try and error".
Greets and hth,
Peter
--
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
More information about the FLOW3-general
mailing list