[TYPO3-mvc] checkbox problem

Marc Bastian Heinrichs typo3 at mbh-web.de
Wed Aug 17 12:34:27 CEST 2011


Hey,

> I have to push this again. Did nobody else come across this behaviour?
> 
> Everytime I display a form again after submit (e.g. for validation), the 
> boolean checkboxes display this error:
> 
>  >>Checkbox viewhelpers can only be bound to properties of type boolean 
> or array. Property "emailVisible" is of type "string". <<
> 
> Please help me, I really don't know what to do.

if is's a single checkbox, cast the argument in the setter and the
returned property in the getter to boolean of boolean properties in the
model.

I hope this is fixed with the new property mapper in 1.4. Didn't tested
this till now.

Best
Marc Bastian




More information about the TYPO3-project-typo3v4mvc mailing list