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:
form name=completionForm extends=commonBankForm
field
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
try using validwhen - something like:
field property=lunchFrom depends=validwhen
arg key=Lunch from resource=false/
var
var-nametest/var-name
var-value((lunchBreak == 'N') or (*this* != null))/var-value
/var
/field
field property=lunchTo depends=validwhen
arg key=Lunch to
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.
HI friend
thanks for help
i go through it but it is not working right
this is my code snipet
validation.xml
-
field property=lunchFrom depends=validwhen
arg0 key=label.lunchFrom
4:58 PM
To: Struts Users Mailing List
Subject: RE: requiredif help?
try using validwhen - something like:
field property=lunchFrom depends=validwhen
arg key=Lunch from resource=false/
var
var-nametest/var-name
var-value((lunchBreak == 'N') or (*this* != null))/var-value
/var
/field
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 meant?
Well
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
conclusion that I
Subject: Re: requiredif
tarek.nabil wrote:
Hi Erik,
Actually after some reasoning about the application I came to a
conclusion that I will not use the integration between Struts and the
Validator framework. I might still use the ready made validators, but I
will call them explicitly
!-- requiredif --
validator name=requiredif
classname=org.apache.struts.validator.FieldChecks
method=validateRequiredIf
methodParams=java.lang.Object,
org.apache.commons.validator.ValidatorAction,
Users Mailing List
Subject: Re: requiredif
!-- requiredif --
validator name=requiredif
classname=org.apache.struts.validator.FieldChecks
method=validateRequiredIf
methodParams=java.lang.Object
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, is it possible to use
: 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 help.
-Original Message
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 Mailing List
Subject: Re: requiredif
Oh, I'm sorry. I pulled that from the last release
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
15 matches
Mail list logo