Does Playframework 2.0.x support in templates
I used an @ before the second if : @if (true) { … } else { @if (true) { … } else { … }}
I used an @ before the second if : @if (true) { … } else { @if (true) { … } else { … }}
I’m working on a private project which is basically a very extended version of the chatroom example and I also had startup problems with akka and the whole “decentralized” thinking. So I can tell you how I “solved” my extended chatroom: I wanted a server which could easily be deployed multiple times without much additional … Read more
Play 2.2 is out and can be added separately from rest of Play Framework. in build.sbt: resolvers += “Typesafe Repo” at “http://repo.typesafe.com/typesafe/releases/” libraryDependencies += “com.typesafe.play” %% “play-json” % “2.2.1”
You need to create a bootstrap job which will be executed by Play at application start time. @OnApplicationStart public class Bootstrap extends Job { public void doJob() { //do stuff } } Read more about how to do this in the Play Manual.
Here’s my list, of course, with some duplications breaks backward compatibility (it’s a rewrite from scratch) core programmed in scala vs java (got to learn scala to collaborate) scala for templates (but work is being done on groovy templates as a module, to ease migration), so you have to specify the type of each parameter … Read more
I just experienced this myself with Play 2 and it turns out it wasn’t truly hanging, it was just pulling a maven and downloading the Internet. To verify this is the same behavior you were experiencing edit project/plugins.sbt and replace: logLevel := Level.Warn with logLevel := Level.Debug (Though I am building on OSX I imagine … Read more
I am using Play 2.4.3. Added addSbtPlugin(“com.typesafe.sbt” % “sbt-rjs” % “1.0.7”) to plugins.sbt // rjs = RequireJS, uglifies, shrinks to one file, replaces WebJars with CDN client accepts them pipelineStages := Seq(rjs, digest, gzip) This in my build.sbt does all the shrinking work etc. to bower JS, and webjars.
Play 2.x In Play 2, these are implemented with an sbt plugin, so the following instructions are really just sbt tasks. You can use any sbt runner (e In Play 2, these are implemented with an sbt plugin, so the following are really just sbt tasks. You can use any sbt runner (e.g. sbt, play, … Read more