Re: [S2] validation issue

2007-09-12 Thread Pablo Vázquez Blázquez
Hope it helps. field1 == null || field2 != null field 2 is required when field 1 is not null -Original Message- From: j alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 4:28 PM To: Struts Users Mailing List Subject: Re: [S2] validation issue

RE: [S2] validation issue

2007-09-12 Thread Jiang, Jane (NIH/NCI) [C]
null field 2 is required when field 1 is not null -Original Message- From: j alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 4:28 PM To: Struts Users Mailing List Subject: Re: [S2] validation issue The fieldexpression validator would handle most dependent c

Re: [S2] validation issue

2007-09-11 Thread j alex
I) [C] <[EMAIL PROTECTED]> wrote: > > Did you look into expression validator? > > -Original Message- > From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 11, 2007 10:28 AM > To: Struts Users Mailing List > Subject: [S2] validation

RE: [S2] validation issue

2007-09-11 Thread Jiang, Jane (NIH/NCI) [C]
Did you look into expression validator? -Original Message- From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 10:28 AM To: Struts Users Mailing List Subject: [S2] validation issue Hi all! I´m trying to validate two fields that depends on another

Re: [S2] validation issue

2007-09-11 Thread Pablo Vázquez Blázquez
In Struts2 there are no forms... Yes, no forms. I think there is an interceptor interface called ValidationAware and there it can be the cue, but I´m not sure and I suppose there should be another easier way of doing what I want... Jorge Martín Cuervo escribió: sorry, i have no experience wit

Re: [S2] validation issue

2007-09-11 Thread Jorge Martín Cuervo
sorry, i have no experience with struts2. I only use classic struts: http://struts.apache.org/1.3.8/faqs/validator.html Maybe you can create your own validwhen validator rule in struts2. I integrated commons validator in my own project and i reused some struts validwhen code. Validwhen uses an

Re: [S2] validation issue

2007-09-11 Thread Pablo Vázquez Blázquez
Hola Jorge, I think there is not a "validwhen" validator, either... Any idea? Thanks. Jorge Martín Cuervo escribió: try validwhen validation rule. It exists in struts, maybe exists too in struts2. El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió: Hi all! I´m trying t

Re: [S2] validation issue

2007-09-11 Thread Jorge Martín Cuervo
try validwhen validation rule. It exists in struts, maybe exists too in struts2. El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió: > Hi all! > > I´m trying to validate two fields that depends on another field. > > What I was doing in S1 is (for field "in"): > > > key="

[S2] validation issue

2007-09-11 Thread Pablo Vázquez Blázquez
Hi all! I´m trying to validate two fields that depends on another field. What I was doing in S1 is (for field "in"): key="ErrorMessages.applicationIdRepresent.sameReference"/> field[0] editParams fieldTest[0] NOTNULL But now in S2, there is no "r