I think you need to add the value attribute:
value="causasStringArray"
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 10:34 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] CheckboxList template

Hi,
 
I have the following array in my Action,

private String[] causasStringArray;

and this tag:

#tag( CheckboxList "label='Causas'" "name='causasStringArray" "list=causas" "listKey=id" "listValue=descricao" )

"causas" is a List of a bean with the "id" and "descricao" properties...

when I submit the form, the causasStringArray is populated successfully..

but the inverse doesn�t works, if the array is populated, and I dispatch the Action to a velocity page, the checkboxes in the page should be checked, but this doesn�t occurs, why?

------------------

I�ve looked in the checkboxlist.vm, but this condition is always false, because the $parameters.nameValue doesn�t exist...

#if( $tag.contains($parameters.nameValue, $itemKey) ) checked #end

thanks

Ricardo

Reply via email to