Nested property is supported in the mapping definition.

This commit is contained in:
takezoe
2013-04-14 18:28:01 +09:00
parent af257c1941
commit 3c41101e4d
2 changed files with 73 additions and 52 deletions

View File

@@ -65,7 +65,7 @@ class CreateRepositoryServlet extends ServletBase {
form.validateAsJSON(params)
}
val form = Form(
val form = mapping(
"name" -> trim(label("Repository name", text(required, maxlength(40), repository))),
"description" -> trim(label("Description" , text()))
)(RepositoryCreationForm.apply)