To avoid this problem, you just need to make full use of javascript tag, which has a parameter named 'staticJavaScript'. When set to false the different validation faunction are not written. So you just need to have only one tag with this parameter set to true. Example :

<html:javascript formName="A" />
<html:javascript formName="B" staticJavascript="false" />

Thomas

At 21:54 26/08/2003, you wrote:
I have two forms both of which will need to use validators.
My JavaScript is messed up. Suppose I have form

A { fieldA1 - required, fieldA2 - required }
B { fieldB1 - required }

When javascript is generated it generates two scripts both of which have
required () method.

What do I do to avoid this? I guess if generated methods would follow
some convention required<form-name> that would definitely solve a bunch
of problems. Is there a solution already?

Thanks, Alex.


--------------------------------------------------------------------- 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]



Reply via email to