Re: ValidWhen validation

2005-01-07 Thread Matt Bathje
Betty Koon wrote: Matt, Have you tried putting just white spaces in the field for first name in the third test case. It will pass which is incorrect, that's the part I don't understand and got stucked on. It looked like validwhen treated all whitespace string value for a field the same way as the

RE: ValidWhen validation

2005-01-06 Thread Betty Koon
ld is null. -Betty -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 2:30 PM To: Struts Users Mailing List Subject: Re: ValidWhen validation Betty Koon wrote: > It's Server side. > > -Betty > > -Original Message---

RE: ValidWhen validation

2005-01-06 Thread Betty Koon
a textbox. -Betty -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 2:30 PM To: Struts Users Mailing List Subject: Re: ValidWhen validation Betty Koon wrote: > It's Server side. > > -Betty > > -Original Message---

Re: ValidWhen validation

2005-01-06 Thread Matt Bathje
Betty Koon wrote: It's Server side. -Betty -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 2:15 PM To: Struts Users Mailing List Subject: Re: ValidWhen validation Betty Koon wrote: My question is even if I type 123 in the field, it

RE: ValidWhen validation

2005-01-06 Thread Betty Koon
It's Server side. -Betty -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 2:15 PM To: Struts Users Mailing List Subject: Re: ValidWhen validation Betty Koon wrote: > My question is even if I type 123 in the field, it still c

Re: ValidWhen validation

2005-01-06 Thread Matt Bathje
Betty Koon wrote: My question is even if I type 123 in the field, it still complains about the field is required?? I am really confused now ... Ahh, missed that one - is it Javascript or server-side validation doing the complaining? Matt -

RE: ValidWhen validation

2005-01-06 Thread Betty Koon
: ValidWhen validation Betty Koon wrote: > Matt, > > I have also tried to match a different mask like ^123$ for a test. > And it always complains about the field is required. Any idea? > It is the same basic problem, you are saying now that the field is required and that it must be

Re: ValidWhen validation

2005-01-06 Thread Matt Bathje
Betty Koon wrote: Matt, I have also tried to match a different mask like ^123$ for a test. And it always complains about the field is required. Any idea? It is the same basic problem, you are saying now that the field is required and that it must be the string "123". I was thinking about this a

RE: ValidWhen validation

2005-01-06 Thread Betty Koon
: Re: ValidWhen validation Betty Koon wrote: > That's originally what I have (without mask), the non-whitespace check > is not performed by validwhen. I wasn't sure if I can use validwhen > together with mask. I was able to use validwhen in conjunction with > email validat

Re: ValidWhen validation

2005-01-06 Thread Matt Bathje
Betty Koon wrote: That's originally what I have (without mask), the non-whitespace check is not performed by validwhen. I wasn't sure if I can use validwhen together with mask. I was able to use validwhen in conjunction with email validator though. You can use validwhen and mask together. The probl

RE: ValidWhen validation

2005-01-06 Thread Betty Koon
je [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 1:15 PM To: Struts Users Mailing List Subject: Re: ValidWhen validation Betty Koon wrote: > Hi all, > > I am trying to do the form field A and B. > > Here is the example: > > Field A will be required and should con

Re: ValidWhen validation

2005-01-06 Thread Matt Bathje
Betty Koon wrote: Hi all, I am trying to do the form field A and B. Here is the example: Field A will be required and should contain a non-whitespace string if B is true. Here is the rule segement I defined in the validation.xml. I can't get it work correctly. Can someone tell me what I am doing

Re: validwhen validation

2004-05-11 Thread Josh Cronemeyer
Oh sorry, i misreported. I am getting the following error from my app. May 11, 2004 12:30:38 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true May 11, 2004 12:30:54 PM org.apache.commons.validator.Validato

Re: validwhen validation

2004-05-11 Thread Josh Cronemeyer
Is there anything else I need to do besides replace my validation-rules.xml? I still can't get it to work after updating my validation-rules.xml I went to revision 1.34 because when I tried the latest revision I was getting errors from the validator. 1.34 has no problems (except validwhen won't w

RE: validwhen validation

2004-05-11 Thread Nimmons, Buster
what do I specify as the id to iterate over the ActionErrors in the page scope -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 10:48 AM To: Struts Users Mailing List Subject: Re: validwhen validation I was under the (mistaken) impression it

Re: validwhen validation

2004-05-11 Thread Niall Pemberton
I was under the (mistaken) impression it had shipped with 1.1 - but seems it was removed for the 1.1 release and then added back in after. You can find the current validation-ruls.xml in CVS here: http://cvs.apache.org/viewcvs.cgi/jakarta-struts/conf/share/ or if you download a nightly build, it