Just last night a had a similar problem for a while.

In my case the resource properties files had a typo in struts-config.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/portlets/proj/TasksZoomTile.jsp
has the setup file, and same place has a validator working, look at struts-config and validator.xml in config of web-inf.

.V

Ray wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to