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
--- 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
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
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
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
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
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
, 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
]
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
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
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
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
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
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
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
: [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
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
17 matches
Mail list logo