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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -