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
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
The fieldexpression validator would handle most dependent checks, but i
think there's no out-of-the-box solution if we want the expression to act as
a guard condition alone and not as a validation. Please check the archives
for comments on this.
-Joseph
On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[E
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 f
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
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
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
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="
8 matches
Mail list logo