In an event-sourced environment, you sometimes have to introduce an artificial delay to some actions to make sure read-sides had the time to update themselves. If you’re using the classic routing mechanism with a routes-file, you can add such a delay declaratively, like here: This would delay the response of the update-action by 800 Milliseconds, […]
If you have to create a stored procedure in your PlayFramework Database Evolution Script, make sure to properly escape your semicolons (by using two semicolons):
send multipart/form-data with playframework wsClient in scala
Taken from the PlayFramework Google Groups File “conf/routes”: -> /api api.Routes // focus on the big R! -> / website.Routes File “conf/api.routes”: GET /healthCheck/status […]
// pdf generation val play2PDF = “it.innove” % “play2-pdf” % “1.5.1” excludeAll( ExclusionRule(organization = “com.typesafe.play”, name = “twirl-api_2.11”), ExclusionRule(organization = “com.typesafe.play”, name = “play-server_2.11”), ExclusionRule(organization = “com.typesafe.play”, name = “play-java_2.11”), ExclusionRule(organization = “com.typesafe.play”, name = “play-netty-server_2.11”), ExclusionRule(organization = “com.typesafe.play”, name = “play-logback_2.11”) ) Unfortunately, it’s required to hardcode the Scala Version into the Artifact name.. […]
Use your templates with both Java and Scala Controllers in PlayFramework 2.x and avoid getting “RuntimeException: There is no HTTP Context available from here.”.
I’m using PlayFramework 2.3 [1] on a new project of mine. Because I want the project to be safe by default, I enabled CSRF (Cross Site Request Forgery) Protection globally [2] [3]. In this project, I’m doing a pass-through of some legacy pages using a custom proxy I’ve built. These pages don’t know the concept of […]