Ronald,
Tapestry receives input (and fires events) using its Form component,
which is used for creating html forms. Checkboxes are themselves
components and are tied to boolean properties of the containing page (or
component in your case). If you have declared the checkboxes as 'raw'
html tags, you must first change those to proper tapestry components
(http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentscheckbox).
When you declare checkbox components you specify the value to which it
is tied. So if you have the following in your template:
<input t:type="checkbox" value="wantsMail"/>
Then you must have a boolean property named 'wantsMail' in your
component/page class, with appropriate getters/setters (getWantsMail,
setWantsMail).
chris
ronaldlee wrote:
Hi,
I wrote a simple component which contain a check list (using checkboxes). I
put it in a page where it has a function to listen to the submit event.
Inside my onSuccess function, how can I access that component's check list
that user has set?
thx.
Ronald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]