net.liftmodules

validate

package validate

Visibility
  1. Public
  2. All

Type Members

  1. class PageValidationContext extends ValidationContext

  2. abstract class ValidationContext extends AnyRef

    Validation context store information about current validation.

    Validation context store information about current validation.

    Usually you don't need to create custom contexts.

    The main purpose of this class is to use it for server side validation. But you always must have an implicit instance of context. If you don't need to perform server side validation you can just import net.liftmodules.validate.global._

    Example:

    class MySnippet {
      impicit val ctx = ValidateContext()
    
      def render() = {
        "#name" #> SHtml.text(name, name = _) &
        "#save" #> SHtml.onSubmitUnit(() => {
          if (ctx.validate) {
            // process data
          } else {
            // handle error
          }
        })
      }
    }
  3. abstract class Validator[T] extends AnyRef

    Base validator

    Base validator

    Validators generate JavaScript code for different checks and perform server side validation if it required

Value Members

  1. object Validate extends Factory

  2. object ValidationContext

  3. object Validators

  4. package options

Ungrouped