Re: readonly - select box
Why don't u use the readOnly instead of disabled? That's not necessary to use the hidden input in this case. sriram [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for html:select Any suggestions? Please inform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: readonly - select box
I am trying to use validator with validator-rules.xml (for struts1.0). When I deploy the .ear file on JBoss, I'm getting the following error: 10:07:15,247 INFO [Engine] validator: Skipping validation rules file from '/WEB -INF/validator-rules.xml'. No stream could be opened. I tried removing lot of code in validator-rules.xml and finally to test it I've removed almost all the code. Here is the code contained in validator-rules.xml: form-validation global validator name=required classname=org.apache.struts.validator.util.StrutsValidator method=validateRequired msg=errors.required /validator /global /form-validation Still I'm getting the same error. Any idea how to get rid of this will be helpful to me. Sriram
RE: readonly - select box
I don't think html:select supports readOnly. That's the reason why we need to use hidden variable to store the current value of html:select -Original Message- From: leonZ [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 8:35 AM To: [EMAIL PROTECTED] Subject: Re: readonly - select box Why don't u use the readOnly instead of disabled? That's not necessary to use the hidden input in this case. sriram [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for html:select Any suggestions? Please inform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: readonly - select box
Thanks Dan. It worked. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 10:27 AM To: Struts Users Mailing List Subject: Re: readonly - select box forget to mention, You need to add a hidden field which has the same value as the disabled select field. -Dan - Original Message - From: sriram [EMAIL PROTECTED] Newsgroups: Struts Sent: Friday, July 04, 2003 9:40 PM Subject: RE: readonly - select box If I use disable=true, then on submission of the form, this field does not have any value and so I am getting a validation error (this is a mandatory field). My requirement is to make it read-only instead of making it disabled. Any clue? -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: readonly - select box Use disabled=true -D - Original Message - From: sriram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:04 PM Subject: readonly - select box How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for html:select Any suggestions? Please inform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
readonly - select box
How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for html:select Any suggestions? Please inform.
Re: readonly - select box
Use disabled=true -D - Original Message - From: sriram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:04 PM Subject: readonly - select box How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for html:select Any suggestions? Please inform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: readonly - select box
If I use disable=true, then on submission of the form, this field does not have any value and so I am getting a validation error (this is a mandatory field). My requirement is to make it read-only instead of making it disabled. Any clue? -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: readonly - select box Use disabled=true -D - Original Message - From: sriram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:04 PM Subject: readonly - select box How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for html:select Any suggestions? Please inform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: readonly - select box
forget to mention, You need to add a hidden field which has the same value as the disabled select field. -Dan - Original Message - From: sriram [EMAIL PROTECTED] Newsgroups: Struts Sent: Friday, July 04, 2003 9:40 PM Subject: RE: readonly - select box If I use disable=true, then on submission of the form, this field does not have any value and so I am getting a validation error (this is a mandatory field). My requirement is to make it read-only instead of making it disabled. Any clue? -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: readonly - select box Use disabled=true -D - Original Message - From: sriram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:04 PM Subject: readonly - select box How to make a html:select readonly (not disabled). For html:text, I can use 'readonly' but this does not exist for html:select Any suggestions? Please inform. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]