struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray <ray_off...@yahoo.co.uk>
Subject Re: Show stopping validator problem.
Date Sun, 09 Feb 2003 19:37:55 GMT
Nope. No modules. Just a straight applicaion ...

At 10:30 09/02/2003 -0700, you wrote:
>Are you using modules?  If your module doesn't define a message resources 
>then it won't find the error messages.
>
>David
>
>
>
>>From: Ray <ray_offiah@yahoo.co.uk>
>>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>>Subject: Show stopping validator problem.
>>Date: Sun, 09 Feb 2003 11:58:47 +0000
>>
>>Hi there.
>>
>>I'm using the Javascript validator, and have run into a problem that I 
>>can't get around.
>>
>>When a field is invalid, the Javascript dialog box just comes up empty, 
>>and I can't figure out why.  I had a look at the code generated in 
>>JavaScript, and it appears to be missing the actual error messages:
>>
>>     function required () {
>>      this.aa = new Array("name", "", new Function ("varName", " return 
>> this[varName];"));
>>      this.ab = new Array("address", "", new Function ("varName", " 
>> return this[varName];"));
>>      this.ac = new Array("telephoneNumber", "", new Function ("varName", 
>> " return this[varName];"));
>>      this.ad = new Array("emailAddress", "", new Function ("varName", " 
>> return this[varName];"));
>>     }
>>The second parameter in the arrays should have the error message in it, 
>>but it comes out blank.
>>I can't see why, because I have the messages in the app resources file 
>>and the validation.xml is set up correctly, and I have the 
>><html:javascript> tag in the page.
>>
>>Is there anything else it could be?
>>
>>Any help would be greatly appreciated;
>>
>>
>>
>>
>>__________________________________________________
>>Do you Yahoo!?
>>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>>http://mailplus.yahoo.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


Mime
View raw message