cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bartosz Zgodzinski" <bartek_...@poczta.onet.pl>
Subject multivalue field - setValues()
Date Sun, 30 May 2004 14:16:38 GMT
When a want to inicialize a single checkbox a write:
 form.getWidget("single_checkbox").setValue(true);

What shouuld I do when a have a multivalue field with list-type="checkbox"?

I supose I should use setValeus, like this:
form.getWidget("multi_checkbox").setValues(???);

What should I write there (???). I know that this should be Object[], but I
don't know what does it sxacly mean? Please give me an example.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message