|
From: Daniel M. <mi...@pa...> - 2004-03-12 04:36:46
|
Seth, Your first request: make it work with XHTML 1.0 Strict I'll have to look into that, but I doubt that I can make that change. I think you better go ask the developers of the commons-validator to do that. By the way, I expect JavaScript support to be better once the next version of the commons-validator comes out. It looks like the developers have spent more time integrating the JavaScript validation into the picture. However, it doesn't seem like there's much going on in the way of new development for the commons-validator. It seems like the developers are waiting on something (Struts 1.2 or 1.3??). Second: Only included the necessary JavaScript I know exactly what you mean. It makes for a huge glob of extra code that is mostly unneeded, which only makes your page size a lot bigger. I was hoping to only include the required functions, but I'm not sure how easy it would be to do. The code (from Struts) that constructs the JavaScript code does not look like it has been optimized. I have been testing my current implementation and can verify that it works, with the exception of the MessageResourceResolvable patch for the Spring core. Once that is out, I will package my validator in a jar (it really doesn't have any other major dependencies), and put it out for people to try. I am very pleased with how easy it is to add validation to any project--just simply add the ValidatorFactory and BeanValidator definitions in the AppContext, write your validation rules in validation.xml, add the corresponding message resources, and use the BeanValidator to validate your bean, it's really that simple. Daniel -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Seth Ladd Sent: Monday, March 08, 2004 1:10 PM To: spr...@li... Subject: Re: [Springframework-developer] Commons-Validator for Spring -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Miller wrote: | To all, | | I am looking into implementing the JavaScript portion of the | Commons-Validator for Spring. I have a few questions on which I would | appreciate some feedback: Daniel, This is great to see! I have a few requests: - - Make the javascript work with XHTML 1.0 Strict or >. Currently, Struts' javascript works with a <form> with a name attribute. The name attribute is deprecated. It's id now. - - Selectively include the javascript functions being used on the form. In Struts right now, if you choose to include Javascript validation, it includes every possible function. Good luck, and I'd love to help test it out. Keith has been working on some new APIs for validation, so they might be helpful. I think they are either in the RCP or sandbox. Seth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFATLcI5EIB1scRes8RAiTRAJ4yg5FaX7YMcTIHKjSybVH1WB3jqwCeLDyZ AJlkNlE1xImEtQlfEXYeqeE= =mC24 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |