[TYPO3-mvc] Extbase PropertyMapper in 1.2.0 (TYPO3 4.4)

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Mar 17 15:40:05 CET 2011


Hey,

> Template looks like this now:
> <f:form name="customer" object="{customer}" action="update">
> <f:for each="{customer.cartItems}" as="cartItem">
> {cartItem.product.title} &times; <f:form.textbox
> name="cartItems[{cartItem.uid}][quantity]" value="{cartItem.quantity}"
> size="2"/>
> <f:form.hidden name="cartItems[{cartItem.uid}][__identity]"
> value="{cartItem.uid}"/>
> </f:for>

have you checked the resulting HTML code? You have to take care that 
your cartItems will be submitted as properties of "customer", so either try:

name="customer[cartItems][{cartitem.uid}]..."

or use the attribute "property" instead of "name".

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list