A sample is included in the bugtracker example in the
/examples directory.
In addition, a sample
validation.js is available there as well. This is a contecnation of
validator-rules.xml used for performance reasons via the
javascriptValidationSrcFile attribute of the
dbform tag.
Finally, since DBF's validation was based on Struts, you can also check out the validation chapter from "Struts In Action"