RE: requiredif validation challenge

2003-12-12 Thread Udaya Allu
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

RE: requiredif validation challenge

2003-12-12 Thread Clark Kent
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

RE: Requiredif error?

2003-10-31 Thread Ramadoss Chinnakuzhandai
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 -

Re: requiredif

2003-10-28 Thread Ruben Orta Magan
- 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

Re: requiredif

2003-10-28 Thread Koni Roth
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

RE: requiredif

2003-10-28 Thread Greg Dunn
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

RE: requiredif

2003-10-27 Thread Marc Dugger
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

Re: requiredif

2003-10-27 Thread Rhet Behler
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

RE: requiredif

2003-10-27 Thread Marc Dugger
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

RE: requiredif validator

2003-10-15 Thread Erez Efrati
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

Re: requiredif validator

2003-10-15 Thread Adam Hardy
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

RE: requiredif and *this*

2003-06-29 Thread James Turner
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

Re: requiredif - simple example

2003-06-26 Thread Kevin Robair
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

RE: requiredif - simple example

2003-06-26 Thread Brian McSweeney
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

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

RE: RequiredIf Example Request

2003-01-24 Thread Weber, Jeremy
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

RE: RequiredIf Example Request

2003-01-24 Thread Dennis Muhlestein
: 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

RE: RequiredIf Example Request

2003-01-23 Thread Greg Murray
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/

RE: RequiredIf Example Request

2003-01-23 Thread Weber, Jeremy
] -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

RE: RequiredIf Example Request

2003-01-23 Thread Greg Murray
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

RE: RequiredIf Example Request

2003-01-23 Thread Weber, Jeremy
? 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