Constructs a simple mapping for a text field (mapped as scala.Enumeration
)
Constructs a simple mapping for a text field (mapped as scala.Enumeration
)
For example:
Form("status" -> enum(Status))
Constructs a simple mapping for a text field (mapped as scala.Enumeration
)
Constructs a simple mapping for a text field (mapped as scala.Enumeration
)
For example:
Form("status" -> enumId(Status))
Constructs a simple mapping for a text field (mapped as scala.Enumeration
)
Constructs a simple mapping for a text field (mapped as scala.Enumeration
)
For example:
Form("status" -> enumName(Status))
Constructs a simple mapping for a text field (mapped as io.teamscala.scala.data.OrderedEnumeration
)
Constructs a simple mapping for a text field (mapped as io.teamscala.scala.data.OrderedEnumeration
)
For example:
object Sorts extends io.teamscala.scala.data.OrderedEnumeration { ... } Form("sort" -> enumOrd(Sorts))
Constructs a simple mapping for a text field (mapped as io.teamscala.scala.data.SortableEnumeration
)
Constructs a simple mapping for a text field (mapped as io.teamscala.scala.data.SortableEnumeration
)
For example:
object Sorts extends io.teamscala.scala.data.SortableEnumeration { ... } Form("sort" -> enumSort(Sorts))
Constructs a simple mapping for a date field (mapped as org.joda.time.DateTime type).
Constructs a simple mapping for a date field (mapped as org.joda.time.DateTime type).
For example:
val printer = ISODateTimeFormat.dateTime.getPrinter val parser = ISODateTimeFormat.dateTimeParser.getParser val formatter = new DateTimeFormatterBuilder().append(printer, parser).toFormatter Form("birthdate" -> jodaDate(formatter))
a date formatter
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.DateTime type).
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.DateTime type).
For example:
Form("birthdate" -> jodaIsoDate)
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.LocalDate type).
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.LocalDate type).
For example:
Form("birthdate" -> jodaIsoLocalDate)
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.LocalTime type).
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.LocalTime type).
For example:
Form("birthdate" -> jodaIsoLocalTime)
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.Period type).
Constructs a simple mapping for a ISO8601 date field (mapped as org.joda.time.Period type).
For example:
Form("period" -> jodaIsoPeriod)
Constructs a simple mapping for a date field (mapped as org.joda.time.LocalDate type).
Constructs a simple mapping for a date field (mapped as org.joda.time.LocalDate type).
For example:
val printer = ISODateTimeFormat.date.getPrinter val parser = ISODateTimeFormat.dateTimeParser.getParser val formatter = new DateTimeFormatterBuilder().append(printer, parser).toFormatter Form("birthdate" -> jodaLocalDate(formatter))
a date formatter
Constructs a simple mapping for a date field (mapped as org.joda.time.LocalTime type).
Constructs a simple mapping for a date field (mapped as org.joda.time.LocalTime type).
For example:
val printer = ISODateTimeFormat.time.getPrinter val parser = ISODateTimeFormat.timeParser.getParser val formatter = new DateTimeFormatterBuilder().append(printer, parser).toFormatter Form("birthdate" -> jodaLocalTime(formatter))
a date formatter
Constructs a simple mapping for a date field (mapped as org.joda.time.Period type).
Constructs a simple mapping for a date field (mapped as org.joda.time.Period type).
For example:
Form("period" -> jodaPeriod(ISOPeriodFormat.standard))
a date formatter