[TYPO3-mvc] Fluid Checkbox

Eat Dimanche eat.dimanche at yejj.com
Tue Dec 15 11:41:25 CET 2009


Steffen Ritter wrote:
> Eat Dimanche schrieb:
>>>> In checkbox of fluid I want to know the action when we checked or 
>>>> unchecked on it. 
>> So when the fluid registers Javascript EventHandlers? Or others solution
>> to solve this besides using Javascript EventHandlers.
> 
> Sry, i do not understand what you mean and what you want to achive.
> My french is really not good, but probably i'll understand it better 
> than your question above ;) So let me give a try :P
> 
> 
> If you want to access the field via JavaScript, just Query for its ID, 
> it is the same as the property name.
> 
> If you bother wrong submittance of "unchecked" checkboxes: Have a look 
> some threads above or in the Bugtracker, Sebastian mentioned possible 
> solutions.
> 
> regards

I have hard time understanding how to use checkboxes.

I have a class "member" with a field "service", which is of type 
"Tx_Extbase_Persistence_LazyObjectStorage". Now, I want to fill this 
storage with objects, which have been selected in a check box in the 
front end.

Here is my template code:

<f:for each="{services}" as="service">
											<f:form.checkbox property="service" 	
		value="{service.name}"/>			
	{service.name}
		
</f:for><br />		

And here is the error message I get: Checkbox viewhelpers can only be 
bound to properties of type boolean or array. Property "service" is of 
type "Tx_Extbase_Persistence_LazyObjectStorage".

Do you know how to solve this problem?

Thanks a lot in advance,

Dimanche


More information about the TYPO3-project-typo3v4mvc mailing list