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 minimise the javascript generated?
Not other than through the technique you describe below.
I'm going to try a work around, where I've 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.
That's why the staticJavascript option is there. This is a reasonable
approach. Do remember to update the contents of the file if and when you
upgrade to a different Struts release though. Personally I wouldn't
worry about trimming that file down, since the browser should cache it
and only have to fetch it the first time it's referenced.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]