[TYPO3-mvc] Checkbox Viewhelper / boolean

Claus Due claus at wildside.dk
Wed Nov 16 14:53:45 CET 2011


On Nov 16, 2011, at 2:45 PM, Lorenz Ulrich wrote:

> Both in the getter/setter and the class definition of my model, all of these properties are boolean.

Hi Lorenz,

If the above holds true then I suspect that the template variable to which you usually assign your domain object is empty when you get this error. You should check that 1) it is assigned, 2) has a proper value and 3) is accessible in Fluid where you placed the f:form (it does not need to be transferred to the partial template if you use one of those to render your form fields, but it must be available when placing f:form).

If you need your form to function even if the object is not set, you can use the "name" property instead (it will not bitch about the type of property).

Cheers,
Claus


More information about the TYPO3-project-typo3v4mvc mailing list