Developers Summit 2014 ãPlay2/Scalaã§ãã¡ã¤ã³é§åè¨è¨ãå©ç¨ãã大è¦æ¨¡Webã¢ããªã±ã¼ã·ã§ã³ã®ã¹ã¯ã©ã éçºã®åæã
Developers Summit 2014 ãPlay2/Scalaã§ãã¡ã¤ã³é§åè¨è¨ãå©ç¨ãã大è¦æ¨¡Webã¢ããªã±ã¼ã·ã§ã³ã®ã¹ã¯ã©ã éçºã®åæã
Form submission and validation Handling form submission Protecting against CSRF Custom Validations Custom Field Constructors Main concepts Section introduction Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validation Working with Json Working with XML Handling file upload Accessing an SQL database Using the Cache Calling REST APIs wi
Play 2.0 ã§ã¯æ¬¡ã®ããã« "name" -> text ãªã©ã®ãããã³ã°ãå®ç¾©ãã¦ã³ã¡ã³ãã®ãã©ã¼ã ãä½ãã¾ãã ä¾ case class User(name: String, email: Option[String]) val userForm = Form( mapping( "name" -> text, "email" -> optional(text) )(User.apply, User.unapply) ) ãã®ãã©ã¼ã ã«ãªã¯ã¨ã¹ãã Form#bindFromRequest ã§ãã³ã㨠bind ããããã¿ã¼ã³ã§ãã ã§ã æ¨æºã§ã¯ text, number, date ãªã©ã®ãããªãã£ã¼ã«ããããªãã§ããä¾ãã°ã MomoiroCloverZ ãªã©ã®ãã£ã¼ã«ãã¯ãªãã§ããå ¨ããå°ã£ã¦ãã¾ãã¾ããã ãã®ãããªã¨ãã§ããFormatter[MomoiroClove
Dependency injection in Scala with Play 2: itâs free When you write a software you generally split it into several modules with no hardcoded dependencies between them so you can reuse and test them more easily: you just need to wire the different modules together at startup according to your desired configuration. In the Java world, some tools help to perform the wiring task, e.g. Spring or Guice,
Play framework 2.0 betaãåºãããã§ã6 â Dependency Injectionããã£ã¦ã¿ãã Playã§Dependency injectionãå®ç¾ãã å æ¥Play framework2.0ã§ãããããããªtipsãblogã§ç´¹ä»ããã¦ããã®ã§ãããã§ããç´¹ä»ã ãã®ããã° å 容ã¯Play framework2.0(Scalaï¼ã§DIãå®ç¾ãããã¨ãããã®ã§ãã è¿å¹´ã®Javaç³»Webã¢ããªã±ã¼ã·ã§ã³ã§ãDIã¯ãããã¾ãã®ããã«ä½¿ç¨ããã¦ããã¨æãã¾ãã Play frameworkã«ãSpringãGuiceã使ç¨ããããã®ã¢ã¸ã¥ã¼ã«ãããã¾ãããç¬èªã«DIã®ä»çµã¿ããã£ã¦ããããã§ã¯ããã¾ããã ããããä»åãç´¹ä»ããtipsã§ã¯Play framework2.0ã¨Scalaæ¨æºã®æ©è½(ã¨ãã¶ã¤ã³ãã¿ã¼ã³ï¼ã§DIãå®ç¾ãã¦ãã¾ãã ã§ã¯blogã®å 容ã«
Using a storage service like AWS S3 to store file uploads provides an order of magnitude scalability, reliability, and speed gain than just storing files on a local filesystem. S3, or similar storage services, are important when architecting applications for scale and are a perfect complement to Herokuâs ephemeral filesystem. This article will show you how to create a Java web application with Pla
ããã«ã¡ã¯ãé¦¬å ´ã§ãã åçªã§ãããç¾å¨Play! + Scalaã§éçºãã¦ãã¾ãã ããã¾ã§ã¯ã»ã¨ãã©Java (ãã¾ã«Ruby/Rails)ã§ä½ã£ã¦ããã®ã§ãæ¬æ ¼çã«ãµã¼ãã¹ãScalaã§ä½ãã®ã¯åãã¦ã æ £ããªããªãããããã楽ãããã£ã¦ãã¾ããããããã¸ã§ã¯ãéå§æ©ã ã§ã¦ããä¸æºããã㯠ãDIãããâ¦ã ãªããªãããã¹ããé¢åã ãããã ãã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ãwebapiã®å¼ã³åºããã¡ã¼ã«éä¿¡ã¨å¤é¨ãªã½ã¼ã¹ã¸ã¢ã¯ã»ã¹ããå¦çã®ãªã³ãã¬ã¼ãããã¹ãã®ãã³ã«å®è¡ãã¦ãããã¹ãã¼ãã¹ãã«é¥ããã¨ã¯ç®ã«è¦ãã¦ãã¾ãããªãã¡ã¯ã¿ãªã³ã°ï¼ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ï¼ã©ã¤ãã©ãªã®ã¢ãããã¼ãã«èããããã«ããããã¯ãã²ã¨ãDIãå°å ¥ãã¦ããããã ã¨ããããã§ãScala ã¢ããªã±ã¼ã·ã§ã³ã¸ã®DIã®å°å ¥ä½é¨ãç´¹ä»ãããã¨æãã¾ãã Java 㧠DI ã¾ãã¯Javaã®DIã³ã³ããSpri
ããããæ¹æ³ãããã¨ã¯æãã¾ãããç´¹ä»ããã®ã¯æååããã¼ã¹ãã¦è¿½å ããæ¹æ³ã§ãã com.typesafe.config.ConfigFactory ã¯å é¨çã«å©ç¨ããã¦ããã®ã§ä½ãããªãã¦ã import åºæ¥ã¾ãã play console [info] Loading project definition from /private/tmp/todolist/project [info] Set current project to todolist (in build file:/private/tmp/todolist/) [info] Starting scala interpreter... [info] Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_3
è¨å®ãã¡ã¤ã«ãèªã Play framework 2.0ã§ã¯ãããã©ã«ãã®è¨å®ãã¡ã¤ã«ã¨ãã¦conf/application.confãã¡ã¤ã«ã使ç¨ããã¾ãã applicaiton.conf以å¤ã«èªåã§ãã¡ã¤ã«ã追å ãããã¨ãã§ãã¾ããããããå¥ãã¡ã¤ã«ã§includeãããã¨ãå¯è½ã§ãã ãããPlay frameworkã§ä½¿ç¨ãããè¨å®ãã¡ã¤ã«ã¯ãTypesafe configã©ã¤ãã©ãªã«åºã¥ãã¦ããã HOCONãã©ã¼ããã(Human-Optimized Config Object NotationãJSONã¿ãããªãã©ã¼ããã)ã使ç¨ãã¦è¨è¿°å¯è½ã§ãã ã§ã¯è©¦ãã¦ã¿ã¾ãããã ä»å使ç¨ããåä½ç°å¢ã¯ä»¥ä¸ã®ã¨ããã§ãã OS : MacOS X 10.7.2 Playframework : HEAD Java : 1.6.0_26 Eclipse : 3.7 注æ: ãã®è¨äºã§ã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}