Package

jto.validation

forms

Permalink

package forms

Contains the validation API used by Form.

For example, to define a custom constraint:

val negative = Constraint[Int] {
  case i if i < 0 => Valid
  case _ => Invalid("Must be a negative number.")
}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. forms
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait DefaultMonoids extends AnyRef

    Permalink
  2. trait Rules extends DefaultRules[PM] with ParsingRules

    Permalink

    This object provides Rules for Map[String, Seq[String]]

  3. type UrlFormEncoded = Map[String, Seq[String]]

    Permalink
  4. trait Writes extends DefaultWrites with GenericWrites[PM] with DefaultMonoids

    Permalink

Value Members

  1. object PM

    Permalink

    Play provides you a Map[String, Seq[String]] (aliased as UrlFormEncoded) in request body for urlFormEncoded requests.

    Play provides you a Map[String, Seq[String]] (aliased as UrlFormEncoded) in request body for urlFormEncoded requests. It's generally a lot more convenient to work on Map[Path, Seq[String]] to define Rules. This object contains methods used to convert Map[String, Seq[String]] <-> Map[Path, Seq[String]]

    Note

    We use the alias UrlFormEncoded, which is just a Map[String, Seq[String]]

  2. object Rules extends Rules

    Permalink
  3. object Writes extends Writes

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped