Ajax Validation with DWR

I've added a demo to the DWR site on how to do server-side validation that appears to be run on the client.

The demo form demonstrates 2 things; Firstly how to perform in-form validation using server-side checks. The checks here could mostly be done using JavaScript, however many validation tasks can only be done by using server side resources.

It also demonstrates how little boiler-plate DWR requires. The Java code from the examples below is taken from Jakarta commons-validator, without any changes. We simply told DWR to export pre-existing Java functions that were never designed for the web, and yet it all works just fine.

Check it out here: http://directwebremoting.org/dwr/demo-validate.html.

Comments

Comments have been turned off on old posts