Wendy Smoak wrote:
On 8/31/06, John R. Dumonceaux <[EMAIL PROTECTED]> wrote:

Is there a way to include only the J/S actually used?

I'm doing client side validation with j/s and ended up writting my own
routines - thus the validation does seem to add much.

Where are you putting your JavaScript?  There might be a hint at the
top of validator-rules.xml:

Note: Starting in Struts 1.2.0 the default javascript definitions have
been consolidated to commons-validator. The default can be overridden
        by supplying a <javascript> element with a CDATA section, just as
        in struts 1.1.

 From that, I think you can supply your own validator-rules.xml with
custom JavaScript in CDATA sections, and then remove the 'jsFunction'
attribute for the validations you don't want.

Just a thought, I haven't tried it.

You can also set (IIRC) static=false on the html:javascript tag to tell it not to generate the non-dynamic stuff, then include that as an external script, to minimize the amount of Javascript that's generated in-line.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to