[TYPO3-mvc] Fluid Checkbox Helper

Christian Schwan - Dimme GmbH christian.schwan at dimme.ch
Fri Sep 17 13:35:25 CEST 2010


He guy:

<f:form.checkbox property="{item.delivered}" value="1" />

Domain Model Item:

/**
* @var boolean
*/
protected $delivered;

/**
* @return boolean
*/
public function getDelivered() {
return $this->delivered;
}

/**
* Sets the delivered
*
* @param string $delivered
* @return void
*/
public function setDelivered($delivered) {
$this->delivered = $delivered;
}
ERROR:

Checkbox viewhelpers can only be bound to properties of type boolean or
array. Property "" is of type "NULL".

Its it a Bug?

Christian

Ausgehende eMail ist virenfrei.
Von AVG Free SB uberpruft - www.avg.de 
Version: 9.0.851 / Virendatenbank: 271.1.1/3138 - Ausgabedatum: 09/16/10
20:34:00 



More information about the TYPO3-project-typo3v4mvc mailing list