playframework/Play20 — comment on commit d053ec2f8cb6705d289b56feb3262df1df73b8f9
File:  line 0
By recalcitrant:

Hi,

I'm wondering how one would use the list[A](mapping: Mapping[A]) function to validate/bind via a case class:

case class User(username: String, permissions:Set[Permission])

val form = Form(
of(User.apply _, User.unapply _)
(USER_NAME -> nonEmptyText(5), USER_PERMISSIONS -> /* here comes the binding */ )
)

My question is what to assign to USER_PERMISSIONS ?

Thanks for your time and keep up the good work!