DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32343>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32343

           Summary: [Validator] Javascript Rendering Extension
           Product: Commons
           Version: unspecified
          Platform: All
               URL: http://www.niallp.pwp.blueyonder.co.uk/validatorjs.html
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Validator
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to