Right ... IMHO the key things that we need to have :
1. Typesafe validation (predicates as partial functions sounds very good to me ;) ... ) 2. Scala objects abstracting forms ... maybe in a way you similar with what presented here (also this has been mentioned in other posts) 3. An easy way of obtaining markup from "Form" classes 4. An easy way of processing the form (this is the easiest part as we have all we need here) I'll also do some noodling on this and let's come with concrete proposals. P.S. Some ideas are currently here: http://liftweb.net/index.php/Unified_Validation Br's, Marius On Sep 20, 8:46 pm, Tim Perrett <[EMAIL PROTECTED]> wrote: > Guys, > > Myself and Marius have just been talking over IM about generic ways to > build validation into lift. > > IMHO, right now it seems that there is not any cohesive way to > validate user input (without a bunch of manual coding). One of the > things we talked about is server-side form representation... I wonder > if there is a way to abstract form building so that it was somehow > generic and let you specify field content & type and also the > validation that needs to be applied to that control. > > This just pure spitballing, but what about something like: > > class MyDemoFrom extends LiftForm { > def someInput = TextInput(SHtml.text(<usual stuff>), Validatons({ > // whatever validation here > })) > > } > > Or whatever - I just want to try and talk through the idea rather than > propose code at this stage. Even when we extract the validation stuff > from mapper, we'll still need some way of implementing those > validation constraints on controls wont we? > > Interesting in what people think > > Cheers > > Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
