Perform date validation only if field required (requiredIf/validWhen)

2004-02-20 Thread Ivan Jensen
Hi, I have three radio buttons in a form, --- o Today o Tomorrow o From this date: [ ] --- I am currently using requiredIf and date validation on the date textarea . The date entry is only required if the correct radio button is selected and the date validation makes sure

Problem with requiredIf validation

2003-12-17 Thread Markus
Hi, we try to concat more than two conditions with requiredIf. Something like (selectionOne==1 || selectionOne==2) value ==2 The problem is that it is not clear how the validator evaluates the expression. Does anyone having experiences with that. TIA, Markus

requiredif validation challenge

2003-12-12 Thread Clark Kent
I use Struts 1.1 and tried to add the patch for the requiredif validator in validator-rules.xml. Following is the code that I added in the validation.xml for the form. The form has 2 fields and only one of them can be filled inorder to perform a search. field property=acctID depends

RE: requiredif validation challenge

2003-12-12 Thread Udaya Allu
property=username depends=requiredif arg0 key=errors.usernameorpassword/ var var-namefield[0]/var-name var-valuecurrentPage/var-value /var var

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

requiredif NULL doesn't seem to work.

2003-11-22 Thread Joe Hertz
is requiredif the other field is null doesn't work at all. Basically, I've decided that this is *not* a job for the validator framework because it's too complex for a requiredif (which I think is kinda sad actually. This shouldn't be that tough), but I'm still curious why the simple case fails. My next

problem using requiredif

2003-11-13 Thread newton rutgers
Can anyone tell me what's going on in here.. i want the product field has to have some value other then Please select one. and it should be required field. Thanks, Newt field property=product depends=requiredif arg0 key=firstForm.product.displayname/ var var-namefield[0]/var-name

Requiredif error?

2003-10-31 Thread Greg Hess
Hi All, I get the following error when I submit my form using the requiredif: 25 Oct 2003 12:03:13,311 - ERROR org.apache.commons.validator.Validator - reflection: null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

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

requiredif don't execute the condition

2003-10-27 Thread Ruben Orta Magan
Hello. I've got a problem with the requiredif condition in the struts validator. I'm using this dtd: http://jakarta.apache.org/commons/dtds/validator_1_0.dtd http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd The validation rule is: formset form name=icytReviForm

requiredif

2003-10-27 Thread Rhet Behler
Has anyone used this in the validation.xml? If so could I see a simple example? If not what are you using validwhen? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

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

requiredif validator

2003-10-15 Thread Erez Efrati
Hi, I am using the validator 1.02 that came with Struts 1.1. How do I get the 'requiredif' validator to work? Or is it not included? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

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

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

help with requiredIf validation

2003-10-10 Thread Mick Knutson
I have the following requiredIf that does not seem to actually work: field property=phone1 depends=required,minlength,maxlength arg0 key=form.phone1/ arg1 name=maxlength key=${var:maxlength} resource=false/ var

Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1

2003-08-17 Thread Udaya Allu
Hello Dera All, I am resending this request as I could not ascertain whether it is delivered to user group or not -Udaya Dear All, Validation requiredif worked fine in my project when using Struts 1.1 RC1 I upgraded or using now struts 1.1. suddenly the requiredif validation is not working. So

requiredif - Is this correct or wrong ? -Help me

2003-08-17 Thread Udaya Allu
Hello Dear All, Please help me to find fault in hte following code for requiredif validation and identical(password) comparision that worked fine in Struts 1.1 RC1 but giving java.lang.NullPointerException with Struts 1.1 final release

RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1

2003-08-17 Thread Greg Ludington
The format of the variable names changed before Struts 1.1 final. In your validator, try replacing your var-names field-test[0] and field-value[0] with fieldTest[0] and fieldTest[0], respectively. You can see this format in the example at

RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1

2003-08-17 Thread Udaya Allu
. Thank you very much -Udaya Allu -Original Message- From: Greg Ludington [mailto:[EMAIL PROTECTED] Sent: Sunday, August 17, 2003 11:25 AM To: Udaya Allu; [EMAIL PROTECTED] Subject: RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1 The format

how to use requiredif

2003-08-14 Thread georgehill
Hi all, I hava question about the use of required in the validation.xml file.My example is : field property=conPassword depends=requiredif arg0 key=prompt.confirm.password/ var var-nametest/var-name var-value((newPassword != null)/var-value /var

Re: how to use requiredif

2003-08-14 Thread George Hill
, 2003 7:11 PM Subject: RE: how to use requiredif field property=phone depends=requiredif arg0 key=venue.phone / var var-namefield[0]/var-name var-valuevenueId/var-value /var var var-namefield-test[0]/var-name var-valueEQUAL/var-value /var var var-namefield-value[0]/var-name var

Re: how to use requiredif

2003-08-09 Thread George Hill
I am trying to do a change password action. It has three fields, original password, new password and confirm new password. I want to check the confirm new password if the new password is not null.So i want to use the requiredif. thank you for you answer. - Original Message - From

RE: how to use requiredif

2003-08-08 Thread Alex Shneyderman
field property=phone depends=requiredif arg0 key=venue.phone / var var-namefield[0]/var-name var-valuevenueId/var-value

RE: how to use requiredif

2003-08-08 Thread Yansheng Lin
] Subject: Re: how to use requiredif thank you. i understand it. can you tell me where can i find all the validator document? i have searched the struts 1.1 document, but find a little. - Original Message - From: Alex Shneyderman [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL

RE: how to use requiredif

2003-08-07 Thread Kamholz, Keith (corp-staff) USX
It looks like you're just trying to make sue that the password field is filled in right? If so, all you need to use is the 'required' validation. Just replace requiredif with required, and get rid of the var section. This will make sure a password was entered. Is this what you want to do

RequiredIf Validation with nested

2003-07-22 Thread Arnason, Tamara
Hi, I'm trying to use the requiredif validation on fields in a nested collection and am not having any luck. Here's the excerpt from the validation.xml ... form name=/submitFamily_2004 field property=campus indexedListProperty=alumni depends=requiredif

requiredif docs?

2003-07-22 Thread Alex Shneyderman
I am looking for requiredif validator documentation. Does anyone have any pointers to it, preferebaly with examples? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

requiredif and *this*

2003-06-27 Thread Chen, Gin
The new validwhen will provide a *this* So that you can easily test if 2 fields are equal. Is this available using requiredif? I saw Raible's article regarding this but it requires creating a custom validator. I'm not opposed to doing this but I don't want to introduce new items for maintenance

requiredif - simple example

2003-06-26 Thread Brian McSweeney
Hi all, The validator package works well for me. But I'm trying to use the requiredif and failing. I know there has been previous discussion of this, but I'm trying to a simple validation based on a checkbox so perhaps someone could tell me where I'm going wrong. For example, I want

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 property

RE: requiredif - simple example

2003-06-26 Thread Brian McSweeney
being checked would I do something like the following? field property=prop1 depends=mask msg name=requiredif key=app224Form.aForm.prop1.req/ msg name=mask key=app224Form.aForm.prop1.mask/ var var-namemask/var-name var-value

validator requiredif boolean values

2003-06-26 Thread Wilson Chuei
fields on the same form are being validating correctly. No observable errors from the tomcat's stdout. (I am using struts-1.1-rc2) On another note, is it possible to patch 1.1-rc2 with the validwhen valdator? TIA, w. field property=contact.phoneBHPrefix depends=requiredif,mask,minlength

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 key

Re: requiredif question

2003-06-25 Thread Kevin Robair
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 key=form.phone1type

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

Where do I find all the potential options for requiredif validation?

2003-06-25 Thread Mick Knutson
The FA only shows a few of the options. Is there a NULL, NOTEQUALS etc Where can I find the list of options? --- Thanks... Mick Knutson --- _ MSN 8 with e-mail virus protection service: 2 months FREE*

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
I extend org.apache.struts.validator.ValidatorActionForm and all my normal validation works except the requiredif. --- Thanks... Mick Knutson --- From: Sandeep Takhar [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED

Re: RC2 requiredif validation rule syntax change

2003-06-16 Thread Reinhard Nägele
: While testing my app with RC2, I noticed this: In RC1, the requiredif validator rule used these tags: field-test[n] field-value[n] field-join[n] In RC2, it uses: fieldValue[n] fieldTest[n] fieldJoin[n] If you are getting a reflection error / null pointer exception, this is why. -Kevin

Re: RC2 requiredif validation rule syntax change

2003-06-16 Thread David Graham
: While testing my app with RC2, I noticed this: In RC1, the requiredif validator rule used these tags: field-test[n] field-value[n] field-join[n] In RC2, it uses: fieldValue[n] fieldTest[n] fieldJoin[n] If you are getting a reflection error / null pointer exception, this is why. -Kevin

Help with requiredif validation

2003-06-11 Thread Brian McSweeney
Hi all, I'd like to use requiredif to validate some fields as follows: on my jsp I have a checkbox, eg supplier, if this checkbox is checked, then I want another field, eg name to be required. I've tried to set this up in my validation.xml file as follows: field property=name

RE: Help with requiredif validation

2003-06-11 Thread Suresh Babu
Try this arg1 name=requiredif key=A name is resource=false / -- From: Brian McSweeney[SMTP:[EMAIL PROTECTED] Reply To: Struts Users Mailing List Sent: Wednesday, June 11, 2003 9

RC2 requiredif validation rule syntax change

2003-06-10 Thread Kevin Robair
FYI: While testing my app with RC2, I noticed this: In RC1, the requiredif validator rule used these tags: field-test[n] field-value[n] field-join[n] In RC2, it uses: fieldValue[n] fieldTest[n] fieldJoin[n] If you are getting a reflection error / null pointer exception, this is why. -Kevin

[validator] requiredif based on a value

2003-04-04 Thread Raible, Matt
Is it possible to require a field based on the value of another field? I tried the following, but no dice: field property=effectiveDate depends=requiredif arg0 key=changeRequestFormEx.effectiveDate/ var

Re: [validator] requiredif based on a value

2003-04-04 Thread David Graham
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: field property=effectiveDate

RE: [validator] requiredif based on a value

2003-04-04 Thread Raible, Matt
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 equals

requiredif and null

2003-03-31 Thread John . E . Gregg
Hi all, I'm doing validation on a form where I have 3 dependent fields. If any one is present, they all must be present. I set-up my validation by saying A depends on B depends on C depends on A. I know this worked at one time. Currently I'm using 1.1 rc1 and previously was using 1.1 b3. I

Requiredif and Javascript

2003-03-13 Thread Evan Schnell
Has anyone ever enabled javascript validation on a form that included a requiredif rule? Is it correct to assume that this never should be done? Because field-test is an illegal variable name in javascript it seems to me that this is the case. It is time for us to fish or cut bait. Evan

Mask validation BUG with requiredif

2003-03-13 Thread Greg Hess
Hi All, I have just started using the requiredif validation rule with a field that is also being validated with a mask rule. The server side validation is working fine but the client side JavaScript has errors for my requiredif form fields. My form field requires the feild button2URL only

Re: Mask validation BUG with requiredif

2003-03-13 Thread Evan Schnell
Greg Hess wrote: Hi All, I have just started using the requiredif validation rule with a field that is also being validated with a mask rule. The server side validation is working fine but the client side JavaScript has errors for my requiredif form fields. I cannot seem to get any client

Validation mask rule JavaScript breaks with requiredif?

2003-03-12 Thread Greg Hess
Hi All, I have just started using the requiredif validation rule. The server side validation is working fine but the client side JavaScript has errors for my requiredif form fields. My form field requires the feild button2URL only if button2Lbl has been entered and if button2URL it must pass

Where's the JavaScript validation for requiredif?

2003-03-11 Thread Greg Hess
Hi All, I really like the new requiredif validation rule with rc1 what a great addition. I am wondering if there is a reason that it's implementation has omitted the JavaScript validation method? Is it coming? I have been looking at implementing my own JavaScript method for this rule but do

RE: Where's the JavaScript validation for requiredif?

2003-03-11 Thread James Turner
form dependency validations. So, at least until a Javascript guru wants to take a crack at it, requiredif is strictly server-side. James -Original Message- From: Greg Hess [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 5:19 PM To: Struts Subject: Where's the JavaScript

Validation - requiredif

2003-02-25 Thread Rieberger, Dale
Looking for an example of requiredif that is similar to the example on the struts site but without using an index and using ValidationForm not DynaValidationForm. If that isn't possible could someone explain the index example for me. I dont understand the struts-config entries especially where

Re: Validation - requiredif

2003-02-25 Thread Jeff Kyser
Hey Dale, Scroll back to yesterday morning, about 9:20 CST, there's an example posted for Zsolt that worked for him. regards, -jeff On Tuesday, February 25, 2003, at 03:56 PM, Rieberger, Dale wrote: Looking for an example of requiredif that is similar to the example on the struts site

RE: Validation - requiredif

2003-02-25 Thread Rieberger, Dale
Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:01 PM To: Struts Users Mailing List Subject: Re: Validation - requiredif Hey Dale, Scroll back to yesterday morning, about 9:20 CST, there's an example posted for Zsolt that worked for him. regards, -jeff

[REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
-value^[0-9]+$/var-value /var /field field property=lastName depends=requiredif, mask msg name=requiredif key=errors.field.required / msg name=mask key

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Sri Sankaran
mapping also UserInfo? * Have you ensured that the requiredIf logic is being invoked at all? You could test this by say, changing the logic (just for test purposes). For example, change the NULL criterion to some dummy string literal. Then actually enter that literal on the JSP and see

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
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 (leaving just the MASK) and everything behaves correctly. I've also been over

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
I'll take a look at this later today. There have been a number of people saying that they have had problems with REQUIREDIF, so I want to make sure it's still working. James -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 8:38 AM

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread James Turner
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 When I used the correct mask, everything worked

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
/ var var-namemask/var-name var-value^[0-9]+$/var-value /var /field field property=lastName depends=requiredif, mask

requiredif

2003-02-10 Thread Dinesh Samson J
Greetings, My required if condition in validation.xml is not working. The following is the code in my validation.xml file. field property=lastName depends=requiredif arg0 key=label.lastName/ var var-namefield/var-name

RE: [VALIDATOR] requiredif ??

2003-01-31 Thread Weber, Jeremy
Smoak [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:41 PM To: 'Struts 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

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread Wendy Smoak
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

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread PILGRIM, Peter, FM
(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 doesn't seem to be a working example

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread James Turner
: [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'm trying to say that address is required only if 1. prospect is null 2

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread Sri Sankaran
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 Guide there is a large example

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread James Turner
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 language inside Validator, it was the best

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread Sri Sankaran
I suppose that is an acceptable price to pay for being to declaratively define validations. I am hoping to take advantage of requiredif to stop validator from validating upon the first error encountered -- of course it works only where one is testing the 'required' rule. Sri -Original

Re: [VALIDATOR] requiredif ??

2003-01-30 Thread Matthew Meyer
: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] requiredif ?? In the Struts User Guide

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread Wendy Smoak
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.

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread James Turner
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 doesn't work for you. No, it doesn't

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread Wendy Smoak
James wrote: Dumb question: Are you sure you're running validations at all? Yes. I have some simple validations like: field property=newEmailAddress depends=email arg0 key=label.additional.email/ /field and fieldproperty=date

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread Karr, David
: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, that looks convoluted. Sri Well, short

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread James Turner
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 some synergy with the JSTL EL engine

RE: [VALIDATOR] requiredif ??

2003-01-30 Thread Craig R. McClanahan
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: [VALIDATOR] requiredif ?? From: Karr, David [mailto

[VALIDATOR] requiredif ??

2003-01-29 Thread Wendy Smoak
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 file

Where to send bugs/fixes (RequiredIf Equals Condition)

2003-01-27 Thread Weber, Jeremy
Where should I send bugs or fixes with common validator. Specifically the EQUAL condition in RequiredIf doesnt seem to do anything. if (dependTest.equals(FIELD_TEST_EQUAL)) { this_required = dependTestValue.equalsIgnoreCase(dependVal

Re: Where to send bugs/fixes (RequiredIf Equals Condition)

2003-01-27 Thread David Graham
Open a bug report for the issue and attach a patch file to it. David From: Weber, Jeremy [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' (E-mail) [EMAIL PROTECTED] Subject: Where to send bugs/fixes (RequiredIf Equals Condition) Date

RE: RequiredIf Example Request

2003-01-24 Thread Weber, Jeremy
Sorry I am not following you. I am trying to to use the 'requiredif' validation not 'required' validation. I dont have xml defining the field. Just what I had posted in the previous message to illustrate my problem. I am currently looking at the code of requiredif to see if its functioning

RE: RequiredIf Example Request

2003-01-24 Thread Dennis Muhlestein
that the field is required. id: required,mycheck Then it becomes possible to have an optional field. -Dennis On Thu, 2003-01-23 at 14:33, Weber, Jeremy wrote: Yes, but I would think that it would only be run after the first validation (the requiredif) runs. Is that not a correct assumption? Do I need

RequiredIf Example Request

2003-01-23 Thread Weber, Jeremy
I requested this before and have not recieved a response...:( Any takers out there? Currently I am having a heck of time figuring out how to make this work... I have checked out all the online examples, but I am unclear as to what this stuff means... If you have this in your

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
html:radio property=useSecure value=false onclick=showSecureOptions('false');/ No/td /tr field property=sslKeyStore depends=requiredif,exists arg0 key=appserver.sslkeystore.displayname/ var

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
Yes, but I would think that it would only be run after the first validation (the requiredif) runs. Is that not a correct assumption? Do I need to add anything to the exists validation to make it so? In your example if the requiredif fails, does it still try to run the next validations

  1   2   >