play1.x

playのseleniumテストでqunitの実行結果を判定する

画面描画のテストはseleniumでやるつもり。 javascriptの単体テストはqunitを使ってサクっとやってしまいたい。 テストはplay!の仕組みを使ってjavaとjavascriptを全部実行したい。 というわけで、qunitの実行結果をseleniumで判定することにした。 (play! …

herokuでplay1.2.4を使う

dependencies.ymlにversionを設定すれば使える。 1.2.3 # Application dependencies require: - play1.2.4 # Application dependencies require: - play 1.2.4pushした時のログ -----> Heroku receiving push -----> Play! app detected -----> Updating Pla…

jquery mobile を使ってるときのpost後のredirect

jquery mobileを使ったページでフォームデータのpost -> redirect後にリロードすると、再度postされる。 formに「data-ajax=false」を指定することで回避。play view #{form @Foo.save(hoge.id), 'data-ajax':'false'} ... #{/form} play controller public …

play gae リストのサイズ取得時のエラー

ローカルでは ${list.size} で動いていたのに、GAEにデプロイしたらエラーになった Execution error occured in template /app/views/xxxxxx.html. Exception raised was IllegalAccessException : Reflection is not allowed on private int java.util.Arra…

play framework siena

永続化しない属性にはtransientをつける。(?) // @Transient <- 意味なし public transient String memo;