|
From: Daniel M. <mi...@pa...> - 2004-03-05 05:21:36
|
Seth and Keith, Did you get a chance to look at my commons-validator adaptor? I was wondering if you had any feedback? Feel free to tell me that it sucks, or that it was so elementary that you didn't want to waste any more time talking to me about it :) I don't know much about commons-attributes, but from what I've been picking up between the lines on your recent validator-related posts it's quite different from the commons-validator approach. The main difference seems to be that validation meta-data is expressed directly in the source of the bean to be validated, while the commons-validator approach uses the validation.xml file to hold all of that meta-data. Your attributes validator sounds a bit more powerful than the commons validator, but many of the objects that I want to validate are generated (by Middlegen) and I have no way of adding meta-data to the objects without modifying the generated code. Of course, I could just write a wrapper for each object that I want to validate, but I might as well just write a validator class for each object. That being said, I think there is room for both an attributes validator and a commons validator in the Spring framework. The main thing I am interested in knowing is the patch that you (Seth) posted to allow message resources to be nested (as arguments) in another message resource. Do you have any idea how soon this will make its way into a Spring release or should I just get the source and build it in for my own use? Thanks, Daniel -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Daniel Miller Sent: Tuesday, March 02, 2004 12:19 AM To: spr...@li... Subject: RE: [Springframework-developer] Commons-Validator for Spring Seth, That looks great. This would make my validation support super easy to implement. You can grab my current source here: http://www.paonline.com/millerd/Spring-commons-validator_no-dependencies.zip I have not had time to write up a good example, tests, or complete the documentation. Hopefully I will be able to do this soon. Thanks, Daniel Original Message: ----------------------------------------------------- | (2) Improve the handling of Errors objects to allow message resources to be | specified as arguments that would not be resolved to their corresponding | messages until reaching the view. I really like this solution, but I have | not thought it through completely. One more note: since the errorArgs | parameter is an array of Objects (not an array of Strings), maybe there | would be a way to use a "Message" object that would be resolved at a later | time, while preserving the current functionality of Strings that are used | directly as arguments. For all I know, there is already a way to do this (it | seems logical enough), and I just don't know about it. This J2EE stuff is so | hard to keep up with... Daniel, I just posted a simple patch w/ unit test for the functionality we've discussed. Please review and see if it meets your needs. http://opensource.atlassian.com/projects/spring/secure/ViewIssue.jspa?key=SP R-56 Seth ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |