On 5/9/07, Antony Stubbs <[EMAIL PROTECTED]> wrote:
Having staticJavascript=true generates *all* the validation functions
specificed in struts-validators.xml (?) even if the form it's generating for
only uses the REQUIRED validator.
Is there a way to minimise the javascript generated?
Commons
Antony,
The preferred way is to copy the static javascript into a static file (.js)
and include it as a
Antony Stubbs wrote:
Having staticJavascript=true generates *all* the validation functions
specificed in struts-validators.xml (?) even if the form it's generating for
only uses the REQUIRED validator.
That's why it's called 'static' :-) Think of it as library code.
Is there a way to minimis
e extracted the generated
javascript, and have put it in an external file that I will reference. Once
I've decided which functions I am not going to use, I will remove them from
this file.
--
View this message in context:
http://www.nabble.com/-S1--Struts-JavaScript-Validation-staticJavascrip
4 matches
Mail list logo