RE: validwhen
Validwhen is not available yet. It will be available in 1.2 (see other posts in archives regarding this). -Tim -Original Message- From: Eugen Bushuev [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 10:31 AM To: [EMAIL PROTECTED] Subject: validwhen Hi. I can't make "validwhen" to work with a DynaForm. My validation.xml looks like test (1==-1) But it always validates successfully (when "depends" is set to "required" everything works as it should, but not as i need to). Other stuff is in struts-config: in jsp: if it matters Please, help. wbr, eugen. -- С уважением, Е.Бушуев. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validwhen
As I understood, validwhen is only on server side. there will not be any javascript validations. -Original Message- From: sumeet sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 1:08 PM To: [EMAIL PROTECTED] Subject: validwhen Hi, Has any one used validwhen validator rule ? when I am using it is not doing anything its making empty validate javascript methods and no validations are being called . Thanks in advance. cheers, Sumeet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validwhen released?
No this is not in 1.1 at all. -Tim -Original Message- From: otisg [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 10:27 AM To: [EMAIL PROTECTED] Subject: validwhen released? Hello, I would like to use validwhen validation rule, but I am unsure whether the recently released Struts 1.1 includes this. I heard that it does, but according to http://jakarta.apache.org/struts/userGuide/dev_validator.html, validwhen will be released in a release after the 1.1 release. I was wondering if anyone can clear this up for me. Also, if validwhen is not in 1.1, I would be curious to know when a release with validwhen will be made. We need this for a web app that is supposed to go in production by the end of July 2003. Thank you, Otis Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validwhen released?
--- otisg <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to use validwhen validation rule, but I am unsure > whether the recently released Struts 1.1 includes this. I heard > that it does, but according to > http://jakarta.apache.org/struts/userGuide/dev_validator.html, > validwhen will be released in a release after the 1.1 release. > > I was wondering if anyone can clear this up for me. > Also, if validwhen is not in 1.1, I would be curious to know > when a release with validwhen will be made. We need this for a > web app that is supposed to go in production by the end of July > 2003. The validwhen validation is in the nightly builds after 1.1 and will be released with Struts 1.2. David > > Thank you, > Otis > > > > > Get your own "800" number > Voicemail, fax, email, and a lot more > http://www.ureach.com/reg/tag > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validwhen released?
David Graham wrote: The validwhen validation is in the nightly builds after 1.1 and will be released with Struts 1.2. So when will Struts 1.2 be released? :) (For the humor-impaired, that *was* a smiley up there...) Bruce - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validwhen Alternative
We had a requirement of this sought as well. Since we needed it fast, we went ahead with the custom validator. And it works fine. so keith, if you want to get crackin on it I guess the custom validator is the way to go. if anyone else has any other ideas i'll be excited to hear them. - I -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:02 PM To: Struts (E-mail) Subject: validwhen Alternative Hey everyone, >From what I hear, it seems like the validwhen validation is not supported in the final release of Struts 1.1. Is there an alternative to this? I have a form where 2 of the fields are start range and end range. I want a validation that does the following: 1) If start range is filled in, and end range isn't, validation is successful. 2) If start range is less than or equal to the end range (and end range is greater than or equal to start range), validation is successful. 3) Start range must be filled in. Do I need a custom validator for this, or can I get away with the existing validations? Any help with this would be greatly appreciated, thanks! - Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validwhen Alternative
Thanks for the response Imran. I'd rather not do a custom validator if it's not necessary, but if nobody else reponds I might have to bite the bullet and create one... I'm surprised I haven't gotten any other responses, this seems like something that many other people would have run into, or would at least know how to handle... Thanks in advance! - Keith -Original Message- From: Imran Bohoran [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 12:00 AM To: Struts Users Mailing List Subject: RE: validwhen Alternative We had a requirement of this sought as well. Since we needed it fast, we went ahead with the custom validator. And it works fine. so keith, if you want to get crackin on it I guess the custom validator is the way to go. if anyone else has any other ideas i'll be excited to hear them. - I -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:02 PM To: Struts (E-mail) Subject: validwhen Alternative Hey everyone, >From what I hear, it seems like the validwhen validation is not supported in the final release of Struts 1.1. Is there an alternative to this? I have a form where 2 of the fields are start range and end range. I want a validation that does the following: 1) If start range is filled in, and end range isn't, validation is successful. 2) If start range is less than or equal to the end range (and end range is greater than or equal to start range), validation is successful. 3) Start range must be filled in. Do I need a custom validator for this, or can I get away with the existing validations? Any help with this would be greatly appreciated, thanks! - Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: validwhen
Yes it is for server side only. But if I can define a CDATA and call a method to perform javascript validation cant I do that ?? As there is no way I can validate a nested indexed property on the clientside and server side same time . No then I will end up writting javascript in .js files .. Which I am trying to avoid for bussiness logic . Thanx cheers, Sumeet On Thu, 13 Nov 2003 Vara Prasad Reddy wrote : >As I understood, validwhen is only on server side. there will not be any >javascript validations. > >-Original Message- > From: sumeet sharma [mailto:[EMAIL PROTECTED] >Sent: Thursday, November 13, 2003 1:08 PM >To: [EMAIL PROTECTED] >Subject: validwhen > > >Hi, >Has any one used validwhen validator rule ? when I am using it is not >doing anything its making empty validate javascript methods and no >validations are being called . >Thanks in advance. > >cheers, >Sumeet > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >
Re: validwhen kills me!
Sorry I've got and error...change this line (act == 'alta') with this (act == 'insert') Thanks - Original Message - From: "Ruben Orta Magan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, October 28, 2003 2:02 PM Subject: validwhen kills me! Hello.I've got a problem with validwhen. I've got a form with two buttons.one makes and insert in the database, and the other makes a searchI want to make a validation only when the insert button is pushed and i don't know if i understand correctly how validwhen works. I've got this form The hidden input called act that is filled with the word "search" or "insert", the value depends of the button you push. I want to set name as a required field and email has a required, email mask field. If i put this validation don't run :\ test (act == 'alta') test (act == 'alta') Some one knows how to validate correctly?? Someone use validwhen and it's validate correctly? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validwhen + struts 1.1
Blank"validwhen" is in CVS right now. Check out nightly build if it's worth it to you. -Original Message- From: Vara Prasad Reddy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:32 AM To: struts Subject: validwhen + struts 1.1 Importance: High I am currently using struts 1.1. Is there a way I can use the "validwhen" functionality of future coming struts 1.2. Something like I can take only the class files of validwhen and use it along with struts 1.1 can someone detail me on this? Thanks in advance Vara Prasad
RE: Validwhen validator question
Hi. I have the next question related with validwhen validator. I have the validwhen validator like test ((*this* != null) or ((actionName == "Action") and (*this* == null))) This works fine, but when I replace the "Action" string literal with unicode characters (cyrilic) and set xml encoding in the validation.xml to , I get the following error message: 2004-02-02 10:04:24,168 ERROR [STDERR] line 1:39: unexpected char: 0xzD 2004-02-02 10:04:24,168 ERROR [STDERR] at org.apache.struts.validator.validwhen.ValidWhenLexer.nextToken(ValidWhenLexe r.java:236) 2004-02-02 10:04:24,168 ERROR [STDERR] at antlr.TokenBuffer.fill(TokenBuffer.java:69) 2004-02-02 10:04:24,168 ERROR [STDERR] at antlr.TokenBuffer.LA(TokenBuffer.java:80) 2004-02-02 10:04:24,168 ERROR [STDERR] at antlr.LLkParser.LA(LLkParser.java:52) 2004-02-02 10:04:24,168 ERROR [STDERR] at org.apache.struts.validator.validwhen.ValidWhenParser.value(ValidWhenParser. java:384) -Original Message- From: Andriy Ruzhevych [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 9:15 AM To: Struts Users Mailing List Subject: Validwhen validator question Hi. Can I use global constants from constant element in validwhen validator? If I can, how can I do that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 1.611 (20040127) Information __ This message was checked by NOD32 antivirus system. http://www.nod32.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validwhen validation question
Is it possisble to use validwhen for date fields like comparing dates? Brendan Richards <[EMAIL PROTECTED]> wrote: I'm looking at using validwhen for a complex validation. I've got a value that can either be ignored when another parameter is set or is valid when it's a date. A simple date validation would be something like this: datePatterndd-MM-var> Can a validwhen call another validation? Giving you something like test ((ignoreDate == "yes") or ( #insert date validation# )) or should I just write my own validation rule / do it with javascript before I submit? Thanks, Brendan Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
Re: validwhen in the validation-rules?
--- Mick Knutson <[EMAIL PROTECTED]> wrote: > I can't find any examples of validwhen in the validation rules. Does > anyone > have a working example for me to use? validwhen is not included with Struts 1.1. It will be released with 1.2. David > > --- > Thanks... > Mick Knutson > --- > > _ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]