| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
object Util
extends
ScalaObject
- nafg
def this
|
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| bindFields.. |
def bindFields[T <: Mapper[T]](mapper : T, nsfn : (MappedField[Any, T]) => NodeSeq)
Binds all nodes whose names are names of fields on the specified mapper
[details]
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.
|
(NodeSeq) => NodeSeq | |
| clone.. |
protected def clone
|
Object | AnyRef |
| eachField.. |
def eachField[T <: Mapper[T]](mapper : T, fn : (MappedField[Any, T]) => Seq[BindParam], filter : (MappedField[Any, T]) => Boolean)
Iterates over the fields of the specified mapper
[details]
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.
|
(NodeSeq) => NodeSeq | |
| eachField.. |
def eachField[T <: Mapper[T]](mapper : T, fn : (MappedField[Any, T]) => Seq[BindParam])
|
(NodeSeq) => NodeSeq | |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| hashCode.. |
def hashCode
|
Int | AnyRef |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString.. |
def toString
|
String | AnyRef |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait.. |
final def wait
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |