Packages

object forms extends ScalatraFormsHelpers

Use helper methods defined in ScalatraFormsHelpers in Twirl templates as follows:

@()(implicit request: javax.servlet.http.HttpServletRequest)
@import org.scalatra.twirl.forms._

<form action="/login" method="POST">
  UserId: @text("userName") @errors("userName")<br>
  Password: @password("password") @errors("password")<br>
  <input type="submit" value="Login">
</form>
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. forms
  2. ScalatraFormsHelpers
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkbox(name: String, value: String, attributes: (String, String)*)(implicit request: HttpServletRequest): Html

    Render a checkbox.

    Render a checkbox.

    Definition Classes
    ScalatraFormsHelpers
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def error(name: String)(implicit request: HttpServletRequest): Option[String]

    Retrieve an error message of the specified field.

    Retrieve an error message of the specified field.

    Definition Classes
    ScalatraFormsHelpers
  10. def errors(name: String)(implicit request: HttpServletRequest): Seq[String]

    Retrieve all error messages of the specified field.

    Retrieve all error messages of the specified field.

    Definition Classes
    ScalatraFormsHelpers
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. def password(name: String, attributes: (String, String)*)(implicit request: HttpServletRequest): Html

    Render a password field.

    Render a password field.

    Definition Classes
    ScalatraFormsHelpers
  18. def radio(name: String, value: String, attributes: (String, String)*)(implicit request: HttpServletRequest): Html

    Render a radio button.

    Render a radio button.

    Definition Classes
    ScalatraFormsHelpers
  19. def select(name: String, values: Seq[(String, String)], multiple: Boolean, attributes: (String, String)*)(implicit request: HttpServletRequest): Html

    Render a select box.

    Render a select box.

    Definition Classes
    ScalatraFormsHelpers
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def text(name: String, attributes: (String, String)*)(implicit request: HttpServletRequest): Html

    Render a text field.

    Render a text field.

    Definition Classes
    ScalatraFormsHelpers
  22. def textarea(name: String, attributes: (String, String)*)(implicit request: HttpServletRequest): Html

    Render a textarea.

    Render a textarea.

    Definition Classes
    ScalatraFormsHelpers
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from ScalatraFormsHelpers

Inherited from AnyRef

Inherited from Any

Ungrouped