RE: Requiredif validator

2007-09-07 Thread Gundersen, Richard
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

Re: Requiredif validator

2007-09-07 Thread Pablo Vázquez Blázquez
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

RE: requiredif help?

2006-10-10 Thread Strachan, Paul
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

RE: requiredif help?

2006-10-10 Thread Mallik
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.

RE: requiredif help?

2006-10-10 Thread Mallik
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

RE: requiredif help?

2006-10-10 Thread Strachan, Paul
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

RE: requiredif

2005-04-23 Thread tarek.nabil
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

RE: requiredif

2005-04-20 Thread tarek.nabil
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

Re: requiredif

2005-04-20 Thread Erik Weber
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

Re: requiredif

2005-04-19 Thread Erik Weber
!-- requiredif -- validator name=requiredif classname=org.apache.struts.validator.FieldChecks method=validateRequiredIf methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction,

RE: requiredif

2005-04-19 Thread tarek.nabil
Users Mailing List Subject: Re: requiredif !-- requiredif -- validator name=requiredif classname=org.apache.struts.validator.FieldChecks method=validateRequiredIf methodParams=java.lang.Object

RE: requiredif

2005-04-19 Thread tarek.nabil
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

Re: requiredif

2005-04-19 Thread Erik Weber
: 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

Re: requiredif

2005-04-19 Thread Erik Weber
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

Re: requiredif combined with other validation rules

2004-10-26 Thread Adam Hardy
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