Re: is their a Clojure framework for handling form validation?

2014-07-08 Thread Mimmo Cosenza
Sorry for the delay, I just saw this thread now. I used https://github.com/cemerick/valip A version of https://github.com/weavejester/valip by Chas Emerick which can be used for both client and server side validation. You could eventually take a look at the way I used from here on:

Re: is their a Clojure framework for handling form validation?

2014-07-05 Thread Asim Jalis
For validation check out Bouncer [1][2]. It is elegant and minimal, and also lets you chain together validators using the threading macro. [1] https://github.com/leonardoborges/bouncer [2] http://www.leonardoborges.com/writings/2013/01/04/bouncer-validation-lib-for-clojure/ Asim On Sunday,

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread John Szakmeister
On Tue, Jul 24, 2012 at 6:05 PM, Trent Ogren m...@trentogren.com wrote: https://github.com/weavejester/valip The approach of that project is interesting. Not only does it decouple validation from any notion of web form (it just works on maps like many of the others in this thread), it

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread Baishampayan Ghose
On Thu, Jul 26, 2012 at 10:19 PM, Takahiro Hozumi fat...@googlemail.com wrote: (when-let [m (validate params)] (throw (clojure.lang.ExceptionInfo. validation error m))) (defn wrap-validation-exception [handler] (fn [req] (try (handler req) (catch

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread Takahiro Hozumi
Instead of calling the ExceptionInfo ctor .getData directly, it's better to use ex-info ex-data instead. Baishampayan Thank you for the information. I agree with you. On Friday, July 27, 2012 6:39:29 PM UTC+9, Baishampayan Ghose wrote: On Thu, Jul 26, 2012 at 10:19 PM, Takahiro Hozumi

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread David Petrovics
Hi Larry, I've been working on a library to provide conveniences similar to what you described. It makes it really easy to generate nicely styled forms. You can specify default values for your form, validation functions to run upon form submission, and actions to execute in the event of

Re: is their a Clojure framework for handling form validation?

2012-07-26 Thread Trent Ogren
https://github.com/weavejester/valip The approach of that project is interesting. Not only does it decouple validation from any notion of web form (it just works on maps like many of the others in this thread), it decouple the error messages from the predicates that produce an error message. I

Re: is their a Clojure framework for handling form validation?

2012-07-26 Thread Takahiro Hozumi
If you build simple json API, combining validation function which return validation error as a map and clojure.lang.ExceptionInfo can reduce intermediate error handling code. (when-let [m (validate params)] (throw (clojure.lang.ExceptionInfo. validation error m))) (defn

Re: is their a Clojure framework for handling form validation?

2012-07-23 Thread Pierre-Henry Perret
See [1]. This is a web framework which has a form validation included. [1] http://www.clojurescriptone.com Le lundi 23 juillet 2012 01:46:52 UTC+2, larry google groups a écrit : Since 2000 I've been doing web development, first with PHP and then with Ruby On Rails. In the world of PHP,

Re: is their a Clojure framework for handling form validation?

2012-07-23 Thread Paweł Rozynek
noir framework got something for it: http://webnoir.org/autodoc/1.3.0/noir.validation.html never saw standalone lib just for that purpose tho. regards PR -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: is their a Clojure framework for handling form validation?

2012-07-23 Thread Michael Klishin
Paweł Rozynek: never saw standalone lib just for that purpose tho. https://github.com/michaelklishin/validateur Validateur is not specific to Web forms, works for any kind of data validation and very extensible. MK mich...@defprotocol.org signature.asc Description: Message signed with

Re: is their a Clojure framework for handling form validation?

2012-07-23 Thread gaz jones
https://github.com/mikejones/mississippi again, not specific to web forms. works on clojure maps and is extensible. On Sun, Jul 22, 2012 at 6:46 PM, larry google groups lawrencecloj...@gmail.com wrote: Since 2000 I've been doing web development, first with PHP and then with Ruby On Rails. In

Re: is their a Clojure framework for handling form validation?

2012-07-23 Thread Robert Marianski
Form validation: https://github.com/joodie/clj-decline https://github.com/joodie/pretzel Form generation: https://github.com/joodie/flutter Robert On Mon, Jul 23, 2012 at 03:30:21PM -0500, gaz jones wrote: https://github.com/mikejones/mississippi again, not specific to web forms. works on

is their a Clojure framework for handling form validation?

2012-07-22 Thread larry google groups
Since 2000 I've been doing web development, first with PHP and then with Ruby On Rails. In the world of PHP, there are some frameworks, such as Symfony, that have classes for managing forms, both generating the HTML for the forms, and also handling the validation of the forms. In the world of