Re: [S1] Struts JavaScript Validation staticJavascript generates too much code

2007-05-09 Thread Niall Pemberton
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

Re: [S1] Struts JavaScript Validation staticJavascript generates too much code

2007-05-09 Thread Paul Benedict
Antony, The preferred way is to copy the static javascript into a static file (.js) and include it as a

Re: [S1] Struts JavaScript Validation staticJavascript generates too much code

2007-05-09 Thread Laurie Harper
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