cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: CForms submit checkbox
Date Sat, 26 Feb 2005 13:21:39 GMT
Carlos Chávez wrote:

>Dustin Jenkins Escribio :-)
>>How do I get the value of the submitted checkbox from a form in my
>>flowscript?  Currently I have this after the showForm() call:
>>var model = myForm.getModel();
>>var cbox_value = model.myCheckBox;
>>cbox_value always returns false, even when it's checked.  Am I doing
>>this right?  All other widgets submit fine.
>  try model.myCheckBox.booleanValue(), but i never used in that way,
>  i'm using myForm.getChild("myCheckBox").getValue().booleanValue()

Yep, this is better. Moreover, "" will be deprecated very soon 
and removed in the future, as it introduces a parallel API to the Java 
API that doesn't follow the usual Java and JS conventions.


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message