Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

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
Comments:

Your patch has been applied ;-)

Posted by Aslak Hellesøy on January 22, 2003 at 01:27 PM MST #

Sweet!! Thanks Aslak!

Posted by Matt Raible on January 22, 2003 at 01:39 PM MST #

Even with this patch, its still not ideal for JavaScript ordering. Having to order setters in your ActionForm to affect how the JavaScript validation works is a bit brittle, methinks. Glad the patch was applied though. I don't use the client-side validation piece personally - I just let the server-side handle it. Its nice to have the client-side capability though, don't get me wrong. My projects just don't require it. It seems the client-side infrastructure should be improved rather than relying on the ordering in the ActionForm.

Posted by Erik Hatcher on January 22, 2003 at 01:50 PM MST #

Matt, please try the updated XDoclet code after my changes to SequencedHashMap - XDoclet needs to be JDK1.3-compliant!

Posted by Erik Hatcher on January 22, 2003 at 06:27 PM MST #

Matt, I am going to be using a lot of your modifications and techniques in a upcoming personal project. I just want to think you for all the work and sharing you have done. These item will be _very_ helpful in my project and are things that I think should have been done already. Thanks again, --Kurt

Posted by Kurt on January 23, 2003 at 07:33 PM MST #

Not gonna be much good if you use DynaForms though :(

Posted by Mark Quinn on April 24, 2004 at 04:33 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed