Using XDoclet to generate your validation.xml?
Are you using XDoclet to generate the validation.xml
file for Struts' Validator Framework? If you're using Struts and you're not using the Validator - you should be IMO. It makes both client-side and server-side validation soooo simple. Using XDoclet to generate the key file (validation.xml
) makes implementation a piece of cake. We have Erik to thank for this wonderful addition to XDoclet. Much appreciated sir!
I'm guessing that not many people are using this feature b/c it works kinda funky right now. It disregards the order of your properties in your ValidatorForm
and generates entries in alphabetical order. This is great except the client-side (JavaScript) piece of the Validator uses the order to determine which fields to validate first. This has caused a slight headache for me on my project, so I fixed it. Checkout XDoclet's JIRA for the bug and the patch. Hopefully it'll get committed soon, but in the meantime, I'll continue using my patched Apache module that allows me to generate ActionForms from POJOs and orders my validation.xml correctly.
Posted by Aslak Hellesøy on January 22, 2003 at 01:27 PM MST #
Posted by Matt Raible on January 22, 2003 at 01:39 PM MST #
Posted by Erik Hatcher on January 22, 2003 at 01:50 PM MST #
Posted by Erik Hatcher on January 22, 2003 at 06:27 PM MST #
Posted by Kurt on January 23, 2003 at 07:33 PM MST #
Posted by Mark Quinn on April 24, 2004 at 04:33 PM MDT #