commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@gmail.com>
Subject Re: commons-validator - javascript error
Date Wed, 12 Apr 2006 15:51:17 GMT
On 4/5/06, edo.dovrat@convergys.com <edo.dovrat@convergys.com> wrote:
> I have a problem using struts validation.
> I'm trying to validate a required field and I get javascript error:
> formName_required is undefined.
> I'm using struts version 1.2, and common-validation version 1.3.0.
> The problem is in the javascript validateRequired:
>        var oRequired = eval('new ' + jcv_retrieveFormName(form) +
> '_required()');
> But the function name being generated is only required() and not
> formName_required().

It works fine for me with the struts-examples webapp from both Struts
1.2.4 and Struts 1.2.9 when I ugrade to Validator 1.3.0.

What version of Struts 1.2 are you using?

Niall

> Any ideas?
>
>
> Edo Dovrat.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message