Thanks guys. On Dec 21, 11:59 am, David Pollak <feeder.of.the.be...@gmail.com> wrote: > On Mon, Dec 21, 2009 at 1:53 AM, Jeppe Nejsum Madsen <je...@ingolfs.dk>wrote: > > > > > tommycli <tommy...@ucla.edu> writes: > > > > Are validation errors shown on CRUDify create/edit pages? > > > > I have validators set up like this: > > > > object subdomain extends MappedString(this,64) { > > > override def validations = List(valUnique("Subdomain taken.")_, > > > valRegex(Pattern.compile("""^[A-Za-z0-9-]*$"""), > > > "Subdomains must only contain > > letters, numbers, and > > > hyphens." > > > )_) ::: super.validations > > > override def displayName = "Subdomain" > > > override def dbIndexed_? = true > > > } > > > > And on an invalid entry, the form will just silently fail - that is, > > > when submitted, it will just give back the exact same form state - no > > > error messages, no changes in the filled-out entries. This confuses me. > > > How should the messages be displayed? AFAIK, per field message display > > is not supported atm. > > Yeah... I need to fix that. http://github.com/dpp/liftweb/issues#issue/254 > > > > > You can display all errors (incl field errors) by > > including the > > > <lift:Msgs showAll="true"/> > > > snippet. Note the showAll attribute which is now needed to show field > > level errors. > > > /Jeppe > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Lift" group. > > To post to this group, send email to lift...@googlegroups.com. > > To unsubscribe from this group, send email to > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/liftweb?hl=en. > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Surf the harmonics
-- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.