[TYPO3-mvc] CheckboxViewHelper -> $this->propertyValue()

Claus Due claus at wildside.dk
Tue Jan 31 09:37:38 CET 2012


Hi Mark,

> $this->propertyValue() is always empty, whether the checkbox has been checked or not…

This sounds more like 1) a mapping problem, 2) a problem in the model getters/setters, 3) a problem in TCA (missing field in showItem for example) or finally 4) that when you are expecting to see a formObject, you may actually have a NULL value - which would make the checkbox viewhelper look for the "checked" property instead.

If you force the checked="checked" property to always be true, you will see the checkbox select itself if for some reason you are losing context with your formObject or the formObject is NULL. Otherwise I would check the other areas and then perhaps start debugging your template variables and/or variables within the checkbox viewhelper (in addition, see Fluid's AbstractFormViewHelper).

---
Cheers,
Claus
http://fedext.net


More information about the TYPO3-project-typo3v4mvc mailing list