Skip to content

WebUIPage

WebUIPage is an abstraction of pages (of a WebUI) that can be rendered to HTML and JSON.

Contract

Rendering Page (to HTML)

render(
  request: HttpServletRequest): Seq[Node]

Used when:

Implementations

Creating Instance

WebUIPage takes the following to be created:

  • URL Prefix
Abstract Class

WebUIPage is an abstract class and cannot be created directly. It is created indirectly for the concrete WebUIPages.

Rendering Page to JSON

renderJson(
  request: HttpServletRequest): JValue

renderJson returns a JNothing by default.

renderJson is used when:


Last update: 2021-06-09
Back to top