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
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?
>
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.
--
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.
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.
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".
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
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
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
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).
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
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
:[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
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
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:
15 matches
Mail list logo