Hi Karthik,

The checkboxes are rendered based on values from the database. 
So they do not have a fixed number. Rendering them is not a problem.
Since the state changes after render, on  formsubmit the server does not
know.

Shalini
 

-----Original Message-----
From: Karthik Abram [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 05, 2005 4:24 PM
To: Tapestry users
Subject: RE: CheckBox Values on FormSubmit


Hey Shalini,
        Can you not put the checkboxe's value (Boolean) in an List and
use a foreach to render them? If the number of your checkboxes will not
change, this is the easiest solution. When the form posts, the boolean
values will be set based on the checkbox states.

-----Original Message-----
From: Shalini Seth [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 05, 2005 4:11 PM
To: tapestry-user@jakarta.apache.org
Subject: CheckBox Values on FormSubmit


Hi,

I have a form that renders multiple checkboxes. On FormSubmit I write
whatever I have checked to a javascript component.
Once that is done I write to the service parameters and the save is
called. Is there any other way this can be done?

Is there a ideal way of sending the values of checkboxes to the server?


Thanks
Shalini


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to