You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2011/01/02 02:48:46 UTC
[Tapestry Wiki] Trivial Update of "Dynamically_Generated_Checkboxes" by BobHarner
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The "Dynamically_Generated_Checkboxes" page has been changed by BobHarner.
The comment on this change is: outdated note.
http://wiki.apache.org/tapestry/Dynamically_Generated_Checkboxes?action=diff&rev1=5&rev2=6
--------------------------------------------------
+ || NOTE: This is outdated information that applies only to Tapestry 4. For current information see [[http://tapestry.apache.org/input-validation.html]]. ||
+
If you need to generate a sequence of check boxes in a form, it can be tricky to work out in your form listener which check boxes have been selected. Here is my solution which involves reconstructing the list of check boxes when the value method of each @Checkbox component is called.
First create a Serializable object to hold the id of the check box:
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org