Regarding the javascript function names, it's not the main validation function name that's the problem - it's the secondary functions which instantiate the arrays for the different validations, e.g. surveyForm_required(), surveyForm_IntegerValidations(), surveyForm_DateValidations()
Under ValidatorActionForm, they become
/esurvey/survey/update_required() etc
which are invalid.
If nobody says anything different, I'm going to log this as a bug, if it's not there already.
I'm not sure why, but I've just realised this thread was going to both user and dev lists, which is totally unnecessary! I'm just sending this reply to user.
On 04/09/2004 08:43 AM Kunal H. Parikh wrote:
I may be a little off here, but why are you using the DynaValidatorActionForm ?
Try using the DynaValidatorForm and u should have client-side and server-side validation working.
This is because, the DynaValidatorActionForm.getValidationKey returns the mapping PATH, whereas the DynaValidatorForm.getValidationKey returns the mapping NAME!
HTH,
KP
-----Original Message-----
From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Friday, 9 April 2004 06:03
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorActionForm client-side validation
Hmmm, I don't seem to have that problem. Did you specify method="validateYourActionForm" in addition to: formName="/yourActionPath" in your <html:javascript tag? If so, the js function generated will be validateYourActionForm. I could be wrong, but don't have time now to dig deep into the code.
HTH, Saul
-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 3:02 PM
To: Struts Users Mailing List
Subject: Re: DynaValidatorActionForm client-side validation
Hmmm, good question. I had this problem, but never managed to solve it. I thought I was doing something wrong but I couldn't work it out. Eventually I changed to DynaValidatorForm, which wasn't a big problem because there were only 2 or 3 forms where I wanted to use the same DynaForm but different validation.
Perhaps someone actually knows if there is a solution?
On 04/08/2004 11:16 AM Igor Antonacci wrote:
Hi All,
I'm working on DynaValidatorActionForm client-side
validation but I've
some problems about.
Everything is working but, as DynaValidatorActionForm maps
validation
rules with Action path attribute, Struts generates a client side validation method name with a "/" character.
It is because Action path has a "/" as first character.
How do I solve this issue ?
Thanks, Igor.
------------------------------ Callidus Software Igor Antonacci Core Engineer [EMAIL PROTECTED] ------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- struts 1.2 + tomcat 5.0.19 + java 1.4.2 Linux 2.4.20 Debian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- struts 1.2 + tomcat 5.0.19 + java 1.4.2 Linux 2.4.20 Debian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]