Hi Richard,
Looking at http://struts.apache.org/2.x/docs/validation.html I don´t see
there was "validwhen" validator...
Besides that, the example you gave me is for Struts 1, isn´t it? I need
an Strut2 one.
Thanks.
Gundersen, Richard escribió:
Hi Pablo
Try using validwhen instead - I think
Hi Pablo
Try using validwhen instead - I think rewquiredif was deprecated. I changed all
mine and you can achive the same thing although your logic might have to be
turned around a bit.
Here's an example:
ay, 10 October 2006 4:58 PM
To: Struts Users Mailing List
Subject: RE: requiredif help?
try using validwhen - something like:
test
((lunchBreak == 'N') or (*this* != null))
test
((lunchBreak == 'N') or (*this* != null))
-Original
HI friend
thanks for help
i go through it but it is not working right
this is my code snipet
validation.xml
-
Thank you friend
no i got some idea, i hope it will work
ur's
Mallik
--
View this message in context:
http://www.nabble.com/requiredif-help--tf2414782.html#a6731806
Sent from the Struts - User mailing list archive at Nabble.com.
try using validwhen - something like:
test
((lunchBreak == 'N') or (*this* != null))
test
((lunchBreak == 'N') or (*this* != null))
-Original Message-
From: Mallik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 10 October 2006 4:49 PM
To: user@struts.a
Subject: Re: requiredif
tarek.nabil wrote:
>Thanks Erik.
>
>I like the idea of using the same action with different URLs but how do
>you do that? The only way I can think of is changing the action of the
>form when clicking any of the buttons using JavaScript, is that what
>you
be circumvented and I don't want
that to cause an error screen to appear.
As for validwhen, I think it's worth giving it a shot to see if it can
be plugged in as a custom validator.
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2
in as a custom validator.
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 8:50 AM
To: Struts Users Mailing List
Subject: Re: requiredif
tarek.nabil wrote:
>Hi Erik,
>
>Actually after some reasoning about the application I came to a
ou could embed validwhen (or something just
like it) as a custom validator? Does the version of Struts you are using
support custom validators?
Hope that helps,
Erik
Thanks
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 7:54 PM
To: Struts Users Mai
ssible?
Thanks
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 7:54 PM
To: Struts Users Mailing List
Subject: Re: requiredif
Oh, I'm sorry. I pulled that from the last release of 1.1. Zoinks, you
are stuck with a pre-1.1 version? Perhaps you co
riginal Message-
From: tarek.nabil
Sent: Tuesday, April 19, 2005 7:41 PM
To: Struts Users Mailing List
Subject: RE: requiredif
Thanks Erik.
I was wondering, is there a client side JavaScript part?
Also, is it possible to use validwhen with the old versions of struts
(1.1b2).
Thanks for your he
e I'm using the documentation shipped in 1.1RC1.
Thanks again for your help.
-Original Message-
From: tarek.nabil
Sent: Tuesday, April 19, 2005 7:41 PM
To: Struts Users Mailing List
Subject: RE: requiredif
Thanks Erik.
I was wondering, is there a client side JavaScript part?
Also, i
Users Mailing List
Subject: Re: requiredif
Erik
tarek.nabil wrote:
>Hi,
>
>I'm stuck with Struts 1.1b2 and I need to do some conditional
>validation. AFAIK, the way to do this for this version is using the
>requiredif validator. The problem is, I canno
Erik
tarek.nabil wrote:
Hi,
I'm stuck with Struts 1.1b2 and I need to do some conditional
validation. AFAIK, the way to do this for this version is using the
requiredif validator. The problem is, I cannot find any reference
information on how to add this validator to the validator-rules.xml
I don't think that's surprising behaviour. It sounds like what you
really need is a 'maskIf' test. You could possibly roll your own from
the requiredif and mask.
On 10/25/2004 05:12 PM David Schneider wrote:
hi. i'm using struts 1.1 and have a question about combining requiredif
with other vali
16 matches
Mail list logo