requiredif question

2003-06-25 Thread Mick Knutson
I have the following code that does not seem to operate at all. I want phone1type to be a required field _if_ the phone1 attribute is _not_ field property=phone1type depends=requiredif arg0 key=form.phone1type/ var

Re: requiredif question

2003-06-25 Thread David Graham
--- Mick Knutson [EMAIL PROTECTED] wrote: I have the following code that does not seem to operate at all. I want phone1type to be a required field _if_ the phone1 attribute is _not_ field property=phone1type depends=requiredif arg0

Re: requiredif question

2003-06-25 Thread Kevin Robair
Just a hunch: For Struts 1.1RC1 , the varnames should be: field-test[x] field-join etc... In 1.1RC2, they are fieldTest[n] fieldJoin etc BTW, I am unsure what you mean by: does not seem to operate at all Are there any errors or exceptions in the log? If the form validates no matter

Re: requiredif question

2003-06-25 Thread Mick Knutson
PROTECTED] Subject: Re: requiredif question Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT) Just a hunch: For Struts 1.1RC1 , the varnames should be: field-test[x] field-join etc... In 1.1RC2, they are fieldTest[n] fieldJoin etc BTW, I am unsure what you mean by: does not seem to operate at all

RE: requiredif question

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
the problem is. I'll do the same! - Keith -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:26 PM To: [EMAIL PROTECTED] Subject: Re: requiredif question Yes, no matter what I enter, nothing happends at all. It just accepts whatever I enter

RE: requiredif question

2003-06-25 Thread Mick Knutson
I did not see yours. Can you post your code again? --- Thanks... Mick Knutson --- From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: requiredif question Date: Wed, 25

RE: requiredif question

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
input would be great, thanks! - Keith -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:32 PM To: [EMAIL PROTECTED] Subject: RE: requiredif question I did not see yours. Can you post your code again? --- Thanks... Mick Knutson

RE: requiredif question

2003-06-25 Thread Sandeep Takhar
, June 25, 2003 1:32 PM To: [EMAIL PROTECTED] Subject: RE: requiredif question I did not see yours. Can you post your code again? --- Thanks... Mick Knutson --- From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED

RE: requiredif question

2003-06-25 Thread Mick Knutson
] Subject: RE: requiredif question Date: Wed, 25 Jun 2003 15:21:50 -0700 (PDT) Are you extending ValidatorForm? sandeep --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: Here's my struts-config and my validation.xml. I've also attached them, if it's easier to look at that way. I've

[REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
I'm reposting this in the hope that someone can tell what I'm doing wrong. I can't seem to figure out why this doesn't work. Any (and all) help is greatly appreciated I have a rather simple form with 4 fields on it. If the first field (patientId) is left blank, then the other three

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Sri Sankaran
if the requiredif logic is triggered Sri -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 8:38 AM To: '[EMAIL PROTECTED]' Subject: [REPOST] [Validator] REQUIREDIF Question I'm reposting this in the hope that someone can tell what I'm

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
sure like to use the REQUIREDIF Jerry -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 8:35 AM To: Struts Users Mailing List Subject: RE: [REPOST] [Validator] REQUIREDIF Question Nothing out of the ordinary jumps out from what you

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Sri Sankaran
The only thing I can come up with is that the MASK processing is screwing things up some way One way to confirm that would be to remove the mask test. Jerry Sri - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread James Turner
To: '[EMAIL PROTECTED]' Subject: [REPOST] [Validator] REQUIREDIF Question I'm reposting this in the hope that someone can tell what I'm doing wrong. I can't seem to figure out why this doesn't work. Any (and all) help is greatly appreciated I have a rather simple form with 4

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread James Turner
Users Mailing List' Subject: RE: [REPOST] [Validator] REQUIREDIF Question Sri - thanks for the reply. We have several other validations going on with this form-bean, so I'm confident that your first two items are OK. I've also pulled the 'REQUIREDIF' check out of the validation in question

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
: [REPOST] [Validator] REQUIREDIF Question The problem, sir, lies not in your requiredif, but in your mask. When you say: var-value^[A-Za-z -']+$/var-value What you're literally saying is A to Z, a to z, and space to '. What you want to say is: var-value^[A-Za-z\ \-\']+$/var-value

[Validator] REQUIREDIF Question

2003-02-12 Thread Jerry Jalenak
Hi All, I have a rather simple form with 4 fields on it. If the first field (patientId) is left blank, then the other three fields (lastName, firstName, dob) are required. So, in struts-config I have snip form-bean name=UserInfo type=org.apache.struts.validator.DynaValidatorForm