2012-12-01ãã1ã¶æéã®è¨äºä¸è¦§
play2.0 ã® scala template ã®ãã©ã¼ã ãã³ãã¬ã¼ããã«ãã¼ã¯ä¾¿å©ãªãã ãã©é£¾ããå¤ããã¦ã¡ãã£ã¨ã«ã¼ã«ããæãããã¨ããã¨çµæ§å¤§å¤ ã¨ãããããããªã®ãç¨æãã¦ããã°fieldOnly.scala.html @(elements: views.html.helper.FieldElements) @elements.â¦
import play.api.data.FormError var form = Form(mapper).bindFromRequest if(ã¨ã©ã¼æ¡ä»¶){ form = form.copy(errors = form .errors ++ Seq(FormError("ãã£ã¼ã«ã","error.message",arg1)),value=None) } form.fold( errorForm => BadRequest(views.html.â¦