RE: problem with checkbox

2008-08-18 Thread Muralidhar Y
this message. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 4:08 PM To: Struts Users Mailing List Subject: Re: problem with checkbox --- On Mon, 8/18/08, Muralidhar Y wrote: > Hi , when I typed the c

Re: problem with checkbox

2008-08-18 Thread Dave Newton
--- On Mon, 8/18/08, Muralidhar Y wrote: > Hi , when I typed the code in my jsp like the following > > value="one" /> > > In the html file the following code is being shown. By > default the attribute value is being true. Instead I want > to give some other value. Kindly help. >

problem with checkbox

2008-08-18 Thread Muralidhar Y
Hi , when I typed the code in my jsp like the following In the html file the following code is being shown. By default the attribute value is being true. Instead I want to give some other value. Kindly help. Warm regards, Muralidhar Y [EMAIL PROTECTED] US Main: 877 KENSIUM (536

Re: problem with checkbox (when using disabled property)

2008-07-13 Thread ravi_eze
t;> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > -- View this message in context: http://www.nabble.com/problem-with-checkbox-%28when-using-disabled-property%29-tp18367328p18438098.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem with checkbox (when using disabled property)

2008-07-10 Thread Owen Berry
I would have thought would handle all of that for you, but I guess it may not be working, or doesn't aim to. 2008/7/10 Paweł Wielgus <[EMAIL PROTECTED]>: > Hi all, > just yesterday i had the very same problem in rails with date field, > so i searched for disabled definition and found this: > http

Re: problem with checkbox (when using disabled property)

2008-07-10 Thread Paweł Wielgus
Hi all, just yesterday i had the very same problem in rails with date field, so i searched for disabled definition and found this: http://www.w3.org/TR/html401/interact/forms.html#successful-controls and http://www.w3.org/TR/html401/interact/forms.html#h-17.12 It looks like disabled flag will simpl

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Dave Newton
--- On Wed, 7/9/08, Owen Berry <[EMAIL PROTECTED]> wrote: > You need to have a hidden field value that will take the > place of the disabled checkbox as some browsers do not > send disabled field values. The tag already includes the hidden field; I don't know what it does for disabled checkboxe

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Owen Berry
You need to have a hidden field value that will take the place of the disabled checkbox as some browsers do not send disabled field values. Basically, it's just for display. On Wed, Jul 9, 2008 at 2:29 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > Did you try with some others browsers, like IE, F

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Lukasz Lenart
Did you try with some others browsers, like IE, FF? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

problem with checkbox (when using disabled property)

2008-07-09 Thread akash agrawal
Hi, Using struts tag for a checkbox. I disable my checkbox using disabled property so that user cannot change it. When the form is submitted, the value of the checkbox passed to the action comes out as false, even if the checkbox was selected (true). The weird thing is if I remove the disabled

Problem with Checkbox from Database to JSP

2006-08-26 Thread Mississippi John Hurt
I'm trying to populate a list of checkboxes, some checked, some not from the database. I followed the Husted Tip#7 but still have problem. My actionform has 2 arrays 1 for selected (selectedFormPropertyArray), 1 for all checkboxes (allFormPropertyArray) populated fine. But when I go to the jsp, i

RE: problem with checkbox values and map backed properties

2005-05-02 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
7;s unset". kr, guenther -- Günther Wieser creative-it Guglgasse 6/1/11/1 A-1110 Wien Austria http://www.creative-it.com -Original Message- From: Cliff Lam [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 03, 2005 4:20 AM To: Struts Users Mailing List Subject: Re: problem with che

Re: problem with checkbox values and map backed properties

2005-05-02 Thread Cliff Lam
27;Struts Users Mailing List'" Sent: Saturday, April 30, 2005 1:28 AM Subject: problem with checkbox values and map backed properties > hi, > > i have the following problem with map backed properties: > > i created a form bean with a map called inCampaignMap, and the gette

problem with checkbox values and map backed properties

2005-04-29 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
hi, i have the following problem with map backed properties: i created a form bean with a map called inCampaignMap, and the getter and setters being "boolean getInCampaign(String key)" and "setInCampaign(String key, boolean value)". internally, of course, the map value entries are of type Boolean

Re: OT: Problem with checkbox - now javascript problem

2005-02-10 Thread Norris Shelton
having a checkbox with the same name as a hidden field prevented the value from being evaluated. This was solved by putting the script directly into the onclick method. onclick=" if (this.checked == true) { document.getElementById('${recordType.name}Box').style.display='block'; } else { do

Re: OT: Problem with checkbox - now javascript problem

2005-02-10 Thread Norris Shelton
Dang it. This is not going to work for me. I have a check box. If the check box is checked, I have some javascript looking for the click event. If the check box has a .checked = true. I change div's display value to block, else to none. So, you check the check box and some radio buttons show

Re: Problem with checkbox

2005-02-10 Thread Norris Shelton
Now I see clearer what you were saying. I found this in the java forums. http://forum.java.sun.com/thread.jspa?threadID=242031&messageID=2946045 It worked like a charm. I wonder why the html:checkbox docs don't mention this. Thanks for your help. --- Cédric Levieux <[EMAIL PROTECTED]> wrote:

Re: Problem with checkbox

2005-02-10 Thread Cédric Levieux
Because when you uncheck a checkbox you don't send this field and the form process let the previous value in place One of tips of mine is to put a hidden field with the same name and to see the field as an array : when it contains only one value the checkbox is unchecked, checked otherwise Hope i

Problem with checkbox

2005-02-08 Thread Norris Shelton
I have a checkbox drawn by: ${recordType.description} The form is defined as: ... ... The check box displays correct and even defaults. If I uncheck the box and submit, when it failes validation, it is still checked. = Norris Shelton Software Engineer Sun Certif

Re: Help! problem with checkbox ( relevant code included)

2004-10-20 Thread t t
Thank you, Bill, Jeff, and Wendy for all your help! Tong Jeff Beal <[EMAIL PROTECTED]> wrote: The relevant section is Section 8.8 of the specification: "Thus when we extract a property or event name from the middle of an existing Java name, we normally convert the first character to lower case.

Re: Help! problem with checkbox ( relevant code included)

2004-10-20 Thread Jeff Beal
The relevant section is Section 8.8 of the specification: "Thus when we extract a property or event name from the middle of an existing Java name, we normally convert the first character to lower case. However to support the occasional use of all upper-case names, we check if the first two chara

Re: Help! problem with checkbox ( relevant code included)

2004-10-20 Thread Wendy Smoak
From: "t t" <[EMAIL PROTECTED]> > Salute you! Bill. It works! Thank you so much! > But why? Why does the name of a property matter? Why > does the upper case "A" matter? Form beans need to conform to the JavaBeans specification. That's what makes it possible for the framework to "know" what metho

Re: Help! problem with checkbox ( relevant code included)

2004-10-20 Thread t t
Salute you! Bill. It works! Thank you so much! But why? Why does the name of a property matter? Why does the upper case "A" matter? Thanks again. Tong --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > I believe the problem is the property name in your > ActionForm. Having a > method named getSAll

Re: Help! problem with checkbox ( relevant code included)

2004-10-20 Thread Bill Siggelkow
I believe the problem is the property name in your ActionForm. Having a method named getSAll() is going to cause problems. Make it getSall() and then the property will be 'sall' and everything will be much happier. Or you could try more meaningful names ;) -Bill Siggelkow t t wrote: Thank you,

Help! problem with checkbox ( relevant code included)

2004-10-20 Thread t t
Thank you, Bill and Jeff, Sorry I didn't include relevant code in my first post. Here is the relevant code. Code in J2:(with checkbox) -- (with other tds) (with other tds) -

Re: Help! problem with checkbox

2004-10-20 Thread Jeff Beal
What's the code in J2 that you use to put the checkbox? Are you using an tag? If so, does that tag refer to yet another action, A3? If so, which form bean is associated with A3? -- Jeff t t wrote: Hi, all, I have JSP file J1 with form F1 inside. It is used to accept user's input. And I wil

Re: Help! problem with checkbox

2004-10-20 Thread Bill Siggelkow
Tong, While I appreciate that you are trying to present your information in a generic manner -- it is rather difficult to know what's going on without specifics. For checkboxes, the property needs to be a boolean. If you cannot figure out the problem, I suggest you include the relevant portions

Help! problem with checkbox

2004-10-20 Thread t t
Hi, all, I have JSP file J1 with form F1 inside. It is used to accept user's input. And I will display the result in JSP file J2 with form F2. And there are a checkbox and multibox in F2. At first, I didn't associate F2 form bean with Action A1 which is triggered in F1. I just associated F1 form