[cgiapp] Form validation "best practices"

Joshua Miller unrtst at gmail.com
Sat Jan 24 16:26:38 EST 2009


I'm currently addicted to Data::FormValidator. If you use stick to
regexp validation (or at least have some), then it ties in easily with
Data.FormValidator.js, allowing additional frontend javascript
validation without having to write a separate validation profile or
routine.

The Data.FormValidator.js has one big limitation - it doesn't support
subroutine references as a validation call, or the built in check
types (like 'email'). That said, you can still include those in your
profile, and they'll be used on the backend, and ignored on the
frontend, so mix-n-matching works out well to provide basic user
friendly validation prior to get/post.

Lots of options though,
--
Josh I.

On Sat, Jan 24, 2009 at 10:20 AM, Stewart Heckenberg
<stewart.heckenberg at gmail.com> wrote:
> If you like Rose::HTML::Objects etc, try out
> Rose::DBx::Object::Renderer -- validation and sensible defaults for
> commonly used field names, e.g. it knows a field called "email" should
> be validated as an email address and it knows that a field called
> "address" can be rendered as a  Google map.
>
> Check it out :)
>
> 2009/1/25 Peter Karman <peter at peknet.com>:
>> Cosimo Streppone wrote on 1/24/09 7:56 AM:
>>> Hi,
>>>
>>> any suggestions about the best practices, most used modules,
>>> cgi-app plugins for generic form validation?
>>>
>>> So far, I looked at:
>>>
>>>  - Form::Processor
>>>  - Data::FormValidator
>>>  - FormValidator::Simple (and C::A::FV::S)
>>>
>>
>> Rose::HTML::Objects (particularly Rose::HTML::Form).
>>
>> If you want closer tie-in with an ORM like RDBO or DBIC, you might look at
>> Rose::HTMLx::Form::Related.
>>
>>
>> --
>> Peter Karman  .  http://peknet.com/  .  peter at peknet.com
>>
>> #####  CGI::Application community mailing list  ################
>> ##                                                            ##
>> ##  To unsubscribe, or change your message delivery options,  ##
>> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
>> ##                                                            ##
>> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
>> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
>> ##                                                            ##
>> ################################################################
>>
>>
>
> #####  CGI::Application community mailing list  ################
> ##                                                            ##
> ##  To unsubscribe, or change your message delivery options,  ##
> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
> ##                                                            ##
> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> ##                                                            ##
> ################################################################
>
>


More information about the cgiapp mailing list