Tuesday January 21, 2003
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 in Java
at Jan 21 2003, 10:12:23 PM MST
6 Comments
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
Posted by Aslak Hellesøy on January 22, 2003 at 07:27 AM MST #
Posted by Matt Raible on January 22, 2003 at 07:39 AM MST #
Posted by Erik Hatcher on January 22, 2003 at 07:50 AM MST #
Posted by Erik Hatcher on January 22, 2003 at 12:27 PM MST #
Posted by Kurt on January 23, 2003 at 01:33 PM MST #
Posted by Mark Quinn on April 24, 2004 at 10:33 AM MDT #