[TYPO3-mvc] checkbox problem

Christian Kartnig office at hahnepeter.de
Wed Aug 17 11:48:15 CEST 2011


Am 17.08.2011 11:09, schrieb Valentin Zickner:
> but there is a parameter called "checked".
> Try this one (untested):
> <f:form.checkbox class="checkbox" property="emailVisible"
>   value="1" checked="{object.emailVisible == 1}" />

Hey Valentin!

I have no idea why, but this really works out. Thanks a lot!

You have to write <f:form.checkbox property="emailVisible" value="1" 
checked="{object.emailVisible}" />

Do you know why this prevents the type error?

br,
Christian


More information about the TYPO3-project-typo3v4mvc mailing list