You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/12/04 03:20:57 UTC

[jira] Commented: (SHALE-340) Catch-all for general improvements and documentation for shale-validator

    [ http://issues.apache.org/struts/browse/SHALE-340?page=comments#action_38970 ] 
            
Niall Pemberton commented on SHALE-340:
---------------------------------------

Compressed JavaScript in Validator 1.3.1

One of the features of Validator 1.3.0 was to add "compressed" versions of the JavaScipt validation routines. Unfortunately, due to a mistake when I cut the 1.3.0 release they didn't get generated and included in the 1.3.0 distribution - this has been rectified in the recent Validator 1.3.1 release. On top of this, as per Apache policy, source file headers have now been included in the standard JavaScript files which increases their size  and the automatically generated "compressed" versions are now about 1/3 of the size of the un-compressed versions (17k in total instead of 54k).

Using the "compressed" versions is just a matter of configuring the jsFunction attribute in the validator-rules.xml - Struts1 now offers 2 validator rules versions:

   http://svn.apache.org/viewvc?view=rev&revision=481719
   http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/resources/org/apache/struts/validator/validator-rules-compressed.xml?r1=481719&r2=481718&pathrev=481719

There is also compressed and un-compressed versions of the full javascipt in the 1.3.1 distribution - which you might find a use for to provide a link in the page and reduce the rendered page size.

> Catch-all for general improvements and documentation for shale-validator
> ------------------------------------------------------------------------
>
>                 Key: SHALE-340
>                 URL: http://issues.apache.org/struts/browse/SHALE-340
>             Project: Shale
>          Issue Type: Improvement
>          Components: Validator
>            Reporter: Craig McClanahan
>         Assigned To: Craig McClanahan
>            Priority: Minor
>             Fix For: 1.0.4-SNAPSHOT
>
>
> Catch-all ticket for general improvements to shale-validator that are surfaced during the creation and testing of a new integration test webapp (SHALE-399)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira