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
-~----------~----~----~----~------~----~------~--~---