Playframework

Playframework reference

イシュー ブックマーク 参考 http://www.playframework.com/documentation/2.2.x/api/scala/index.html Scala Style Guide - Scala Documentation

playframework のmilestone

イシュー いつ2.3が出るのか? 参考 Milestones - playframework/playframework · GitHub JPA & Slick 参考 Factor out ebean from Play Java, factor out anorm and use JPA and Slick · Issue #1518 · playframework/playframework · GitHub postgresql - …

Slickサンプル

参考 Play2.1RC+Scala+SlickでTODOチュートリアルを作成する - takashima0411's blog play-slickを試した - ryiwamotoのブログ playframework/play-slick · GitHub play-slick Slick(旧Scala Query)を使ったScalaによるDBアクセス | Developers.IO Playの初…

Anormサンプル

参考 http://www.atmarkit.co.jp/ait/articles/1307/02/news021_3.html

InputStream をStringにする方法

Java 参考 http://www.mursts.jp/2012/03/01/235645.html IOUtils InputStream is = getRes.getStream(); List<String> lines = IOUtils.readLines(is); dataModel.text = lines.get(0); project/Build.scala val appDependencies = Seq( // Add your project depend</string>…

ebean の finderをメニューとしてつかえないか?

内容 ebean のfinderは、whereメソッドの引数にStringを持つことができる。 このStringをメニューの条件として保存しておけないか? またはcom.avaje.ebean.Expressionクラス Expression はインターフェース ハッシュを展開して、Expression でロジックを組…

Play2 で app ディレクトリ配下にAssetのjsを生成できないか?

やりたいことは、controllerのパラメタに応じて、JSを生成したい たとえば、hoge.controllerなら、hoge.jsを呼び出したい http://www.playframework-ja.org/documentation/2.0.4/AssetsCoffeeScript coffeeスクリプトがコンパイルされるのなら、scalaで出力…

Play2 でjsonをpostで受け取って、createする方法

request bodyにjson渡ししてcreateする play2だから、bindとbindFromRequestを使って、データをマップしたい どうやるの? ここらへん? https://groups.google.com/forum/#!topic/play-framework/_8-q43XoWdg def saveStock = Action { request => val json…

Playframork sample

websocket sample http://playdocja.appspot.com/documentation/1.2.5/releasenotes-1.2#h2-3

Playframework tips

groovy template tips 組み込みメソッド:field http://playdocja.appspot.com/documentation/1.2.5/tags#field #{list} ループ内でindexを取得する http://playdocja.appspot.com/documentation/1.2.5/tags#list db tips http://localhost:9000/@db にて、…