java - Fill Form in Play Framework (Scala) -
i'm making checkboxes , using scala, found nice example in java. couldn't convert scala. java code:
form<studentformdata> formdata = form.form(studentformdata.class).fill(studentdata);
scala's play.api.data.form class doesn't have "fill" , "form" methods java's play.data.form. how can create form in scala?
here function use data form , generate object location.
def add = dbaction { implicit rs => val data = locationform.form.bindfromrequest.get locations.create(some(data.venuename), data.lat, data.lon) redirect(routes.locationcontroller.all) }
Comments
Post a Comment