Hi Clark,
The following is similar validation in struts 1.1 final release working fine, for the
case first field is necessary when second field is null, otherwise one of the two
shall be available. Do not bother about additional condition of page attribute of page.
It is just show how to use
Hi Udaya,
Thanks for the corrections.
I have just found out that I am missing the public static boolean validateRequiredIf(
)
in the struts-validator.java class which should contain the java functionality to take
care of requiredif validator. So it seems like this patch needs to be added
Try
var-namefieldTest[0]/var-name
-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 25, 2003 12:21 PM
To: Struts
Subject: Requiredif error?
Hi All,
I get the following error when I submit my form using the requiredif:
25 Oct 2003 12:03:13,311 -
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
The new validwhen validation rule, which will be included into the Struts
release immediately after the 1.1 release...
I am using the nightly build to develop my app and am
http://cvs.apache.org/builds/jakarta-struts/nightly/
Ruben Orta Magan wrote:
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
The new validwhen validation rule, which will be included into the Struts
release immediately after the
Since no one offered an example for requiredIf:
In this case either x_Company OR x_First_Name and x_Last_Name are required,
so x_First_Name AND x_Last_Name are requiredIf x_Company is NULL, and
company is required if either first name OR last name is null.
field
property=x_First_Name
My understanding is that 'requiredif' will be deprecated and the use of
'validwhen' is encouraged.
Example:
field property=emailAddress depends=validwhen
arg0 key=userinfo.emailAddress.label/
var
var-nametest/var-name
var-value((sendNewsletter == null) or
validwhen isn't available in struts 1.1 is it?
have you used this or tested it?
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 27, 2003 5:32 PM
Subject: RE: requiredif
My understanding
into any problems, but you may search the archives
to view other opinions.
-Original Message-
From: Rhet Behler [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 7:17 PM
To: Struts Users Mailing List
Subject: Re: requiredif
validwhen isn't available in struts 1.1 is it?
have
Oops, sorry, what I wanted to know is about 'requiredWhen'.
Erez
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 11:12 AM
To: 'Struts Users Mailing List'
Subject: requiredif validator
Hi,
I am using the validator 1.02 that came with
On 10/15/2003 01:47 PM Erez Efrati wrote:
Oops, sorry, what I wanted to know is about 'requiredWhen'.
Erez
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 11:12 AM
To: 'Struts Users Mailing List'
Subject: requiredif validator
Hi,
I am
Requiredif doesn't provide the *this* constant, alas.
Validwhen will, and should be available in 1.1.1/1.2 (whatever we call
the next release), except that I may do another rewrite before release
it, since there's been a lot of suggestions to me to base it on the
Commons EL parser rather than
The following worked for me. Note that in RC1, the var-name tag values
are expected to be field-test[n], not fieldTest[n] and so on
The requiredif check was removed because in 1.1RC1, requiredif would break
a javascript validator such as mask. I used custom validation instead.
field
June 2003 14:30
To: Struts Users Mailing List
Subject: Re: requiredif - simple example
The following worked for me. Note that in RC1, the var-name tag values
are expected to be field-test[n], not fieldTest[n] and so on
The requiredif check was removed because in 1.1RC1, requiredif would
break
--- 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
PROTECTED]]
Sent: Thursday, January 23, 2003 4:20 PM
To: Struts Users Mailing List
Subject: RE: RequiredIf Example Request
I'm not sure exists is a standard validation rule. Did you define it
yourself?
-Original Message-
From: Weber, Jeremy [mailto:[EMAIL PROTECTED]]
Sent
: Thursday, January 23, 2003 4:20 PM
To: Struts Users Mailing List
Subject: RE: RequiredIf Example Request
I'm not sure exists is a standard validation rule. Did you define it
yourself?
-Original Message-
From: Weber, Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 2
If you're just requesting an example of something, here's what I'm currently using:
field property=studentId depends=requiredif,integer,minlength,maxlength
msg name=requiredif key=errors.msg.studentIDorNameRequired/
msg name=integer key=errors.msg.invalidStudentID/
]
-Original Message-
From: Greg Murray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 3:26 PM
To: Struts Users Mailing List
Subject: RE: RequiredIf Example Request
If you're just requesting an example of something, here's what I'm currently
using:
field property=studentId
I'm not sure exists is a standard validation rule. Did you define it yourself?
-Original Message-
From: Weber, Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 2:00 PM
To: 'Struts Users Mailing List'
Subject: RE: RequiredIf Example Request
Thank you , thank you, thank
?
Jeremy Weber
[EMAIL PROTECTED]
-Original Message-
From: Greg Murray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:20 PM
To: Struts Users Mailing List
Subject: RE: RequiredIf Example Request
I'm not sure exists is a standard validation rule. Did you
28 matches
Mail list logo