Re: type validwhen validation

2007-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, Nathan Coast wrote: > this feels better as the existing framework is responsible for executing > all validations, assembling cumulative errors and creating localised > messages. I'm just not sure it's possible to add validations. Whenever I

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
apologies if this is a dumb question, but how come there is no validateBoolean? Niall Pemberton wrote: On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking at the struts and validator source and have a couple of ideas for a solut

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
excellent stuff, It would probably have taken me a couple of weeks to get here :) I'll let you know how I got on. cheers Nathan Niall Pemberton wrote: On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking at the struts and valid

Re: type validwhen validation

2007-02-09 Thread Niall Pemberton
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking at the struts and validator source and have a couple of ideas for a solution to my problem. 1) just create an appropriate validator and execute it. Simpler but doesn't 'feel' as

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
Hi Niall, thanks again for the quick response. I've been looking at the struts and validator source and have a couple of ideas for a solution to my problem. 1) just create an appropriate validator and execute it. Simpler but doesn't 'feel' as good. IntegerValidator validator = IntegerVali

Re: type validwhen validation

2007-02-09 Thread Niall Pemberton
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: thanks Niall, I've had a look at the examples and I'm not sure they demonstrate what I need. The examples all seem to be simple boolean expressions e.g. test ( (*this* != null) or

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
thanks Niall, I've had a look at the examples and I'm not sure they demonstrate what I need. The examples all seem to be simple boolean expressions e.g. test ( (*this* != null) or ( (address2 == null) and (

Re: type validwhen validation

2007-02-09 Thread Niall Pemberton
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi, I have two fields in a form. I believe the validwhen rule executes a specific rule (e.g. required) on field a based upon the value of field b. The situation I have is that I need to execute different validations on field a determined by th

type validwhen validation

2007-02-09 Thread Nathan Coast
Hi, I have two fields in a form. I believe the validwhen rule executes a specific rule (e.g. required) on field a based upon the value of field b. The situation I have is that I need to execute different validations on field a determined by the value of field b. Is this possible client sid

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

ValidWhen validation

2005-01-06 Thread Betty Koon
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 it wrong. Tha

Re: (repost) validwhen validation

2004-05-13 Thread Matt Bathje
CTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, May 13, 2004 4:10 PM Subject: (repost) validwhen validation > I seem to have deleted the original messages to this thread, but it is > probably best that I just ask the question again anyway. > >

(repost) validwhen validation

2004-05-13 Thread Josh Cronemeyer
I seem to have deleted the original messages to this thread, but it is probably best that I just ask the question again anyway. I am rather new to struts and I am trying to use the validwhen dependency for validation. After finding out that validwhen feature wasn't included in struts 1.1 final re

Re: validwhen validation

2004-05-11 Thread Josh Cronemeyer
truts/conf/share/ > > or if you download a nightly build, it should be in the conf/share directory > > Niall > > > - Original Message - > From: "Josh Cronemeyer" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, May 11, 2

Re: validwhen validation

2004-05-11 Thread Josh Cronemeyer
> Niall > > > - Original Message - > From: "Josh Cronemeyer" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, May 11, 2004 4:17 PM > Subject: validwhen validation > > > > Is there any way to use validwhen ye

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
should be in the conf/share directory Niall - Original Message - From: "Josh Cronemeyer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 11, 2004 4:17 PM Subject: validwhen validation > Is there any way to use validwhen yet? I would really

validwhen validation

2004-05-11 Thread Josh Cronemeyer
Is there any way to use validwhen yet? I would really like to use it, but it isn't in my validator-rules.xml, and I can't find a validator-rules.xml version anywhere that includes it. thanks in advance - To unsubscribe, e-mai