RE: Obtaining check box data from a form

2006-09-07 Thread Mark Stang
PM To: Tapestry users Subject: Re: Obtaining check box data from a form Mark, so as per your example, if i am understanding it corrently, i can only retrieve the boolean value and not the corresponding string associated with the che

RE: Obtaining check box data from a form

2006-09-07 Thread Mark Stang
k J. Stang Title: Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Peter Dawn [mailto:[EMAIL PROTECTED] Sent: Thu 9/7/2006 4:38 PM To: Tapestry users Subject: Re: Obtaining check box data from a form Mark, so as per your exa

Re: Obtaining check box data from a form

2006-09-07 Thread Peter Dawn
Mark, so as per your example, if i am understanding it corrently, i can only retrieve the boolean value and not the corresponding string associated with the checkbox. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: Obtaining check box data from a form

2006-09-07 Thread Mark Stang
e: Mark J. Stang Title: Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Peter Dawn [mailto:[EMAIL PROTECTED] Sent: Wed 9/6/2006 11:56 PM To: Tapestry users Subject: Re: Obtaining check box data from a form ok. the only othe

Re: Re: Obtaining check box data from a form

2006-09-07 Thread Sam Gendler
The Tapestry Checkbox component doesn't offer a way to do what you want but it is possible to do it. If you have multiple input fields with the same name, the servlet spec says that you can call request.getParameters("fieldName") and receive an array of strings. So here's how I solved this: Wri

Re: Obtaining check box data from a form

2006-09-06 Thread Peter Dawn
ok. the only other way for me to obtain a users selection would a radio button. might try that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Obtaining check box data from a form

2006-09-06 Thread Jesse Kuhnert
Most of the time a checkbox - by definition - is more of a boolean operation than value...But far be it from me to argue with semantics that do work.. If you want to just get past the problem and move on you can always call IRequestCycle.getParameterValues("thenameyou gaveallofyourcheckboxes");

Re: Obtaining check box data from a form

2006-09-06 Thread Peter Dawn
just to clarify again, i want to gather the underlying value of each checkbox and not its label. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Obtaining check box data from a form

2006-09-06 Thread Peter Dawn
ok i will try again. i have a bunch of options which the user can select from. they are all checkboxes (approx say 25). based on this user selection i display corresponding information on the next page. now first thing, 1. how should i group these checkboxes, individually, within a span or somet

Re: Obtaining check box data from a form

2006-09-06 Thread Nick Westgate
Hi Peter. Your explanation is rather vague, but if you want to treat the checkboxes as a group, you might want to look at the contrib MultiplePropertySelection: http://tapestry.apache.org/tapestry3/doc/api/org/apache/tapestry/contrib/form/MultiplePropertySelection.html Note that all the html doc

Re: Obtaining check box data from a form

2006-09-06 Thread Peter Dawn
may be i should put everything within a span and then pass on values of checked checkboxes. but how do i group them together. if they were radio buttons i would have selected RadioGroup. any help guys. - To unsubscribe, e-mail:

Re: Obtaining check box data from a form

2006-09-06 Thread Peter Dawn
i can pass a boolean fine. but how do i pass on the value of the checkbox on a submit. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Obtaining check box data from a form

2006-09-06 Thread Peter Dawn
its good for a start. how come i couldnt find it. but thanks anyways. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Obtaining check box data from a form

2006-09-06 Thread Jesse Kuhnert
Does this help? http://tapestry.apache.org/tapestry3/doc/ComponentReference/Checkbox.html On 9/7/06, Peter Dawn <[EMAIL PROTECTED]> wrote: guys, i am trying to implement a big form within my web app. in the form the user is able to select through checkboxes what information they want viewed.