|
From: Daniel M. <mi...@pa...> - 2004-03-12 04:36:48
|
Camron, You might check with the developers of the commons-validator. They may have use for your JavaScript validation code. I was hoping that my adaptor for Spring would have minimal or no addition to the commons-validator functionality, but rather simply adapt the validator to Spring. In that regard, I hope I don't have to write any JavaScript, the commons-validator should provide that and I will provide a means to get it into your view. Thanks, Daneil -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Cameron Braid Sent: Monday, March 08, 2004 6:36 AM To: spr...@li... Subject: RE: [Springframework-developer] Commons-Validator for Spring I have written some javascript validation code that extends the WebWork2 validator system by creating client site javascript. I have been trying to find the time to extract out our application specific code from the system to allow it to be shared with the community. I am still willing to do this, and I have been working on this recently. Currently it is integrated into our custom freemarker marco based forms library, and using some javascript objects on the client. I will attempt to get the code online somewhere for people to have a look at. I don't know if it is useable with spring, but it may provide some food for thought. Thanks, Cameron. > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] > On Behalf Of Sam Newman > Sent: Monday, 8 March 2004 8:42 PM > To: spr...@li... > Subject: Re: [Springframework-developer] Commons-Validator for Spring > > 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: > > > > 1. Rather than re-invent the wheel I was planning on using as much > > existing code as possible to implement JavaScript validation for > > Spring. It turns out that the Struts source contains a lot > of the code > > that "constructs" the JavaScript functions for the client. What are > > the policies for using code from other open-source projects > in Spring? > > Can I just rip a bunch of code out of the Struts source and > adapt it > > for Spring? Do I need to ask permission first? > > No matter what the license says, I think it would be > advisable to ask - some goodwill from the struts developers > might well help the process. In fact the struts developers > are known to be a big fan of their code being rebuilt as > separate modules - the Jakarta commons projects started from > code in struts 1.0 being moved into separate projects. Struts > is licensed using the Apache license, as such their code can > be used without problem as long as correct attribution is > given - this amounts to stating in the code itself and the > documentation where it came from. > > > 3. Would it be advisable to put the javascript generating > code in the > > tag library or in the ValidatorFactory (which holds the resources > > needed to build the code; things like message resources > would need to be passed in)? > > A tag library would be my preferred choice (I hate Java > scriptlets in JSP pages - a maintenance nightmare) although I > suspect that the tag would be a relatively thin wrapper over > the ValidatorFactory itself. > > -- > sam > http://www.magpiebrain.com/ > > > ------------------------------------------------------- > 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 > > ------------------------------------------------------- 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 |