Hi,
Can somebody pls tell me why the following validation is not firing?
(see xml snippet below)
contact.phoneBHVisible and contact.phoneBHRequired are booleans.
Essentially, what I want to do is that validate only when
contact.phoneBHVisible == true && contact.phoneBHRequired == true
Other fi
> So, you're saying that effectiveDate is requiredif state == 940?
>
Yep.
> Try adding [0] to the end of the field* vars.
>
That worked - thanks! I've hacked together some client-side javascript for
this since there's not one in the validator natively - I'll try to work a
method up for equal
So, you're saying that effectiveDate is requiredif state == 940?
Try adding [0] to the end of the field* vars.
David
Is it possible to require a field based on the value of another field? I
tried the following, but no dice:
Is it possible to require a field based on the value of another field? I
tried the following, but no dice:
field
state
fieldTest
Cc: [EMAIL PROTECTED]
> Subject: RE: [REPOST] [Validator] REQUIREDIF Question
>
>
> The problem, sir, lies not in your requiredif, but in your mask.
>
> When you say:
>
> ^[A-Za-z -']+$
>
> What you're literally saying is "A to Z, a to z, and space
'Struts 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
ry 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
> doing wrong. I can't seem to figure out why this doesn't
> work. Any (and
> 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 ad
just to get by
this, but would 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
>
SP and see 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
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 field
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
and in
alue.length() > 0)) {
return true;
} else {
//errors.add(field.getKey(),
Resources.getActionError(request, va, field));
errors.add(field.getKey(),StrutsValidatorUtil.getActionError(request,va,fiel
d));
return false;
}
On Thu, 30 Jan 2003, James Turner wrote:
> Date: Thu, 30 Jan 2003 19:06:19 -0500
> From: James Turner <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE:
> From: Karr, David [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 6:05 PM
> To: Struts Users Mailing List
> Subject: RE: [VALIDATOR] requiredif ??
>
>
> Gee, I haven't been paying much attention to this issue, but
> that looks like there could be
03 11:39 AM
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] requiredif ??
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 2:30 PM
> To: Struts Users Mailing List
> Subject: RE: [VALIDATOR] requiredif ??
>
>
> Man, t
James wrote:
> Dumb question: Are you sure you're running validations at all?
Yes. I have some simple validations like:
and
datePatternStrict
MM/dd/
on
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 2:44 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [VALIDATOR] requiredif ??
>
>
> James wrote:
> > A quick look at that configuration looks correct. Let me know if it
James wrote:
> A quick look at that configuration looks correct. Let me know if it
> doesn't work for you.
No, it doesn't. It's as if that rule isn't even there-- if there is no
prospect, and there is a prospect name, even if the address is blank, it
passes validation and goes to the next step.
:55 -0500
"Sri Sankaran" <[EMAIL PROTECTED]> wrote:
Man, that looks convoluted.
Sri
-Original Message-
From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 1:03 PM
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] required
-Original Message-
> From: James Turner [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 2:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [VALIDATOR] requiredif ??
>
>
> > From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> > Se
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 2:30 PM
> To: Struts Users Mailing List
> Subject: RE: [VALIDATOR] requiredif ??
>
>
> Man, that looks convoluted.
>
> Sri
Well, short of implementing a full boolean expression langua
Man, that looks convoluted.
Sri
> -Original Message-
> From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 1:03 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [VALIDATOR] requiredif ??
>
>
> In the Struts User G
Users Mailing List'
> Subject: RE: [VALIDATOR] requiredif ??
>
>
>
> I'm Still struggling with requiredif... there doesn't seem to
> be a working example of it included with 1.1b3. I've gone
> through the documentation and come up with this. I'
(0)207-375-4923
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2003 17:41
> To: 'Struts Users Mailing List'
> Subject: RE: [VALIDATOR] requiredif ??
>
>
>
> I'm Still struggling with requiredif... there do
I'm Still struggling with requiredif... there doesn't seem to be a working
example of it included with 1.1b3. I've gone through the documentation and
come up with this. I'm trying to say that address is required only if
1. prospect is null
2. prospectNameOrId is not null
3. action is not e
James wrote:
> Check out the "requiredif" validator in 1.1b3
I have 1.1b3, I have the struts-validator webapp deployed, but the only
occurence of the text "requiredif" is in the validator-rules.xml file. I
can't find an example of how to use it. Can someone post a bit of their
validation.xml fi
-
> From: Michelle Wynn [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 10:58 PM
> To: Struts Users Mailing List
> Subject: Validator requiredIf
>
>
>
> Has anyone had any success validating conditionally with requiredIf
> client-side? There does not seem
Michelle Wynn wrote:
Has anyone had any success validating conditionally with requiredIf
client-side? There does not seem to have been a javascript method created
for this validation method. I looked in 1.1B and the most recent nightly
build. Also haven't had success validating server side
Has anyone had any success validating conditionally with requiredIf
client-side? There does not seem to have been a javascript method created
for this validation method. I looked in 1.1B and the most recent nightly
build. Also haven't had success validating server side (although I do
have th
> -Original Message-
> From: Frost, Gary [IT] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 1:08 AM
> To: '[EMAIL PROTECTED]'
> Subject: Help validator requiredif
>
>
> Ok,
>
> the requiredif check. BTW I'd also like to
Ok,
I've been struggling with this for a couple of hours now, tried lots of the
resources online and am struggling to understand those too, hoping someone
can give quickly put me on track.
I've got a form, in that form there is a selector called settleType, the
settleType has several valid values
32 matches
Mail list logo