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
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
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
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
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
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]
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");
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]
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
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
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:
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]
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]
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.
14 matches
Mail list logo