[2.0-scala] How to pass a Boolean in form

91 views
Skip to first unread message

chiappone

unread,
Jun 4, 2012, 2:27:59 PM6/4/12
to play-fr...@googlegroups.com
Im not sure what the correct mapping is for a boolean in a form?

val postForm = Form(
  tuple(
    "name" -> text,
    "veteran" -> Boolean
  )
)

Boolean doesn't seem to work.  What is the correct mapping?

thanks 

Xuefeng Wu

unread,
Jun 4, 2012, 9:56:55 PM6/4/12
to play-fr...@googlegroups.com
as "name" -> test, you should use "veteran" -> boolean.

在 2012年6月5日星期二UTC+8上午2时27分59秒,chiappone写道:
Reply all
Reply to author
Forward
0 new messages