The Formmater for binding the ValueType of this ValueEnum.
The Formmater for binding the ValueType of this ValueEnum.
Used for building the Formmater for the entries
Field for mapping this enum in Forms
Field for mapping this enum in Forms
Binder for play.api.routing.sird router
Binder for play.api.routing.sird router
Example:
import play.api.routing.sird._ import play.api.routing._ import play.api.mvc._ Router.from { case GET(p"/hello/${Greeting.fromPath(greeting)}") => Action { Results.Ok(s"$greeting") } }
Implicit path binder for Play's default router
Implicit path binder for Play's default router
Implicit path binder for Play's default router
Implicit path binder for Play's default router
An IntEnum that has a lot of the Play-related implicits built-in so you can avoid boilerplate.
Things included are:
Form("hello" -> MyEnum.formField)