[TYPO3-mvc] Multidimensional Arguments
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Thu Jan 21 19:13:24 CET 2010
Try
<f:form.hidden name="item[{item.uid}][h]" value="1"/>
<f:form.checkbox name="item[{item.uid}][cb]" value="1"
checked="{item.uid} ==
> 5" />
Where the name 'item' is the property name of the object.
Greetings,
Thomas
Sebastian Fischer schrieb:
> Hi everybody,
>
> lately i have the problem, that i need to have 2dimensional arguments e.g.:
>
> <f:form.hidden name="{item.uid}[h]" value="1"/>
> <f:form.checkbox name="{item.uid}[cb]" value="1" checked="{item.uid} ==
> 5" />
>
> This is needed to have the opportunity to uncheck various items. If you
> only submit the checkbox you never get to notize which items are not
> checked, because html only submits checked values.
>
> Solution for that is, to transmit hidden values for every variable item
> possible and then check which of them is additionaly checked or not.
>
> If i would transmit as given above i get the error #1210858767: Invalid
> argument name.
>
> Now the 1000 dollar question is, is it possible or not? And if it is,
> how does it need to be setup?
>
> Greets and thanks in advanced
>
> Sebastian Fischer
> Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list