Re: Validator validWhen

2007-03-01 Thread Niall Pemberton
On 2/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thank you for your reply. Why is it only server-side ? Because no-one has written the equivalent functionality in JavaScript. Validwhen uses antlr to evaluate expressions on the server side - replicating its functionality in JavaScript

Re: Validator validWhen

2007-02-28 Thread jmpdev
Thank you for your reply. Why is it only server-side ? Regards, Selon Niall Pemberton <[EMAIL PROTECTED]>: > No its server-side only. > > Niall > > On 2/27/07, jmpdev <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I would like to know if it is possible to call validWhen on the client > > side? >

Re: Validator validWhen

2007-02-27 Thread Niall Pemberton
No its server-side only. Niall On 2/27/07, jmpdev <[EMAIL PROTECTED]> wrote: Hi, I would like to know if it is possible to call validWhen on the client side? I didn't find validWhen.js is it possible to find it somewhere? Thanks, Regards, Jean-Marie. --

Validator validWhen

2007-02-27 Thread jmpdev
Hi, I would like to know if it is possible to call validWhen on the client side? I didn't find validWhen.js is it possible to find it somewhere? Thanks, Regards, Jean-Marie.

Re: struts validator | validwhen rule not working

2006-03-16 Thread Niall Pemberton
validwhen is server side only. Niall On 3/16/06, Partha Pratim Dutta <[EMAIL PROTECTED]> wrote: > I am using struts validator framework for client side & server side > validations. I am facing issue with validwhen rule. Validator rules like > 'required', 'minlength', 'maxlength' are working fine.

struts validator | validwhen rule not working

2006-03-16 Thread Partha Pratim Dutta
I am using struts validator framework for client side & server side validations. I am facing issue with validwhen rule. Validator rules like 'required', 'minlength', 'maxlength' are working fine. The form has 2 fields 1. Radio button - 'currentMember'. This has values "yes" & "no".

Please enhance validator "validwhen" to avoid associative braces

2005-10-06 Thread Nicolas De Loof
I'm using validwhen rule and find great for complex validation I'm just frustrated on the requirement to use braces to group conditions by pairs : I must make a 4 element "or" validation, each element beeing itself a "and" expression. I'd like to write test = (A and B) or (C and D) or (E and

RE: Using checkbox value in Validator validwhen test

2005-04-19 Thread Dornback, Ken
value in Validator validwhen test It is a classic. Look on Ted Husted's website for tip. Basically, you need to clear checkbox value each time in the reset() method of a form bean, because cleared value is not sent to server. So you think that you cleared it, but it is still set (do you u

Re: Using checkbox value in Validator validwhen test

2005-04-19 Thread Michael J.
It is a classic. Look on Ted Husted's website for tip. Basically, you need to clear checkbox value each time in the reset() method of a form bean, because cleared value is not sent to server. So you think that you cleared it, but it is still set (do you use session-scoped form bean?) Michael Jou

Using checkbox value in Validator validwhen test

2005-04-19 Thread Dornback, Ken
Problem: I don't know how to test a checkbox setting in the validwhen test var-value. I have a checkbox and a text field. I only need to validate the text field when the checkbox is checked. I cannot get this to work using validwhen (other validwhens do work that use different types of tests).

validator validwhen and quotes causes js errors

2004-11-26 Thread erh
It seems hard to believe that no one ran across this before, but it appears that it's not possible to specify quotes in the criteria used for validwhen. I tried to use a criteria that looks like this: ((somefield == "foo") or (*this* < 123)) However that caused javascript errors on the p

Re: Struts Validator - ValidWhen

2004-10-21 Thread Niall Pemberton
l - Original Message - From: "Daniel Kalcevich" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, October 21, 2004 4:10 PM Subject: RE: Struts Validator - ValidWhen I have upgraded to 1.2.4 and the problem still ex

RE: Struts Validator - ValidWhen

2004-10-21 Thread Daniel Kalcevich
:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 6:33 PM To: Struts Users Mailing List Subject: Re: Struts Validator - ValidWhen Version 1.2.1 of Struts had problems and never made "ga" release quality - the only "ga" release for Struts 1.2 is Version 1.2.4 - some validwhen

Re: Struts Validator - ValidWhen

2004-10-20 Thread Niall Pemberton
Daniel Kalcevich" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, October 20, 2004 8:10 PM Subject: Struts Validator - ValidWhen Hello, I have a form that contains two fields: id & lastName. The rule is that if I can only ente

Struts Validator - ValidWhen

2004-10-20 Thread Daniel Kalcevich
Hello, I have a form that contains two fields: id & lastName. The rule is that if I can only enter in one or the other, not both. I am trying to use the ValidWhen to perform this check. I have code similar to the following: