net.liftweb.mapper.view

Util

object Util extends AnyRef

Provides a number of methods that make complex Mapper-based view snippets easier to build.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Util
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bindFields[T <: Mapper[T]](mapper: T, nsfn: (net.liftweb.mapper.MappedField[_, T]) ⇒ NodeSeq): (NodeSeq) ⇒ NodeSeq

    Binds all nodes whose names are names of fields on the specified mapper.

    Binds all nodes whose names are names of fields on the specified mapper. This makes it unnecessary to write repetitious bindings like "field1" -> field1.toForm, "field2" -> field2.toform Instead it automates such bindings but you have to pass it a function that will generate a NodeSeq from the field, e.g., (f: MappedField[_,_]) => f.toForm Usage: Pass as a Full Box to the bind overload that takes a nodeFailureXform argument.

  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def eachField[T <: Mapper[T]](mapper: T, fn: (net.liftweb.mapper.MappedField[_, T]) ⇒ Seq[BindParam]): (NodeSeq) ⇒ NodeSeq

  10. def eachField[T <: Mapper[T]](mapper: T, fn: (net.liftweb.mapper.MappedField[_, T]) ⇒ Seq[BindParam], filter: (net.liftweb.mapper.MappedField[_, T]) ⇒ Boolean): (NodeSeq) ⇒ NodeSeq

    Iterates over the fields of the specified mapper.

    Iterates over the fields of the specified mapper. If the node currently being processed by bind has an attribute "fields" then it is taken as a whitespace-delimited list of fields to iterate over; otherwise all form fields are used. The specified function returns a BindParam for doing processing specific to that field. Returns a bind function (NodeSeq=>NodeSeq) that can be used to bind an xml node that should be repeated for each field. Usage: if you want to repeat xml markup for each field, the view should use the "field:" prefix for field-specific nodes. The snippet should bind the containing (repeating) node to the function returned by this method, passing this method the mapper instance whose fields should be used and a function that returns BindParams to process the "field:" prefixed nodes. This method takes an additional filter function to restrict certain fields from being displayed. There is an overload without it too.

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any