> -----Original Message----- > From: Dan Horne [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 09, 2005 12:21 AM > To: Sean Davis > Cc: RA Jones; [email protected] > Subject: Re: [cgiapp] ValidateRM and Template problem > > I'm a huge fan of C:A:P:ValidateRM but I stumbled across > CGI::Formbuiler > last week, and my curiosity has been piqued. (I guess in the > past the name > had confused me, because it sounds like it was only for > creating forms and > I use HTML::Template). I'd love to hear people's experiences using > Formbuilder with C:A. Is using it instead of ValidateRM just > a personal > preference thing - kind of like using the Template Toolkit > insted of H:T? > Are the validation rules as flexible (I tend to encode Database-based > checks in anonymous subs with ValidateRM)?
Just my 2c in addition to the other opinions. CFB validation rules are not as flexible and complete as those provided by DFV, for example CFB lacks the "dependencies" constraints offered by DFV (it is eloquent that on the CFB list there has been a discussion about giving CFB the possibility to use DFV for the validation stage). Anyway CFB offers a good collection of predefined validation checks, and it also offers the possibility to use user defined validation subs. On the other hand, CFB also renders the forms (that is it generates the HTML code, given declaratively the form structure) and generates also the javascript checking code for its predefined validation checks. Summarizing, CFB is probably better for fast forms prototyping or for bulk or automated forms generation, since it offers everything from HTML form generation to data validation, while DFV only focuses on this latter stage, giving however a deeper control on the validation. Note: the latest CFB version currently present on cpan (3.01) has unfortunately some serious bugs. The author is aware of that and he'll probably put it right soon. Ciao, Emanuele. --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
