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 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:

RE: requiredif help?

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

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 -

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

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

Re: requiredif

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

RE: requiredif

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

Re: requiredif

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

RE: requiredif

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

Re: requiredif

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

RE: requiredif

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

RE: requiredif

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

Re: requiredif

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

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 vali