You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/07/19 15:22:17 UTC

[jira] Updated: (VALIDATOR-106) [validator] Javascript Rendering Extension

     [ http://issues.apache.org/jira/browse/VALIDATOR-106?page=all ]

Niall Pemberton updated VALIDATOR-106:
--------------------------------------

    Component/s: Framework

> [validator] Javascript Rendering Extension
> ------------------------------------------
>
>                 Key: VALIDATOR-106
>                 URL: http://issues.apache.org/jira/browse/VALIDATOR-106
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Framework
>         Environment: Operating System: All
> Platform: All
>            Reporter: Niall Pemberton
>            Priority: Minor
>
> I have developed an extension for Commons Validator that renders the dynamic 
> javascript for Form validation.
> More details on the listed web site along with a download of the source code 
> and a sample webapp that lets you try it out and shows you the source code.
> * The main component is the ScriptRenderer class which renders the necessary 
> javascript for form validation to a StringBuffer.
> * Static javascript methods have more appropriate method signatures and are 
> smaller and simpler.
> * fields are validated in the order defined in validation.xml (rather than by 
> Validator)
> * it handles 'indexed' field validation
> * I've re-written the Date Validation Javascript Validator so its simpler and 
> takes properly into account the difference between the different date patterns.
> * It can now provide "field level" validation - for example in the onchange 
> method of a field.
> There are examples of all this in the sample webapp. The only word of warning - 
> until a couple of weeks ago I knew virtually no javascript! So it would be good 
> if someone experienced could re-view it - the sample webapp shows you the 
> generated javascript.
> I would like to add this to Commons Validator, but thought I would post it fore 
> re-view first.
> Niall

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org