playframework-2.3 Questions

1

I am using the 'dist' command with play framework v2.5. However, when I unzip the file, it does not create the public directory. I have the following directories: bin, conf, lib, logs and share (co...
Alansen asked 18/4, 2016 at 21:53

1

In my java-play application I have the annotation @RequiresAuthentication(clientName = "CasClient") inside my controller. I only want to authenticate users in my production environment. How can...
Gorgerin asked 29/4, 2016 at 22:14

3

I have been successfully using sbt-eclipse 3.0.0 for some time now. I recently upgraded to Play 2.3.8, and need to upgrade to sbt-eclipse 4.0.0 to avoid this problem. I tried updating project/plugi...
Captainship asked 29/6, 2015 at 16:35

2

void makePdfPage(String url, PdfContentByte contentByte){ com.itextpdf.text.Font sans = UtilityMethods.getSansSerifFont(14); sans.setColor(80,147,225); ColumnText ct = new ColumnText(contentByte...
Dacha asked 15/2, 2016 at 14:58

2

In order to cache actions per label and language for a given number of seconds, I wrote the following helper method (where label, is the name I give to my action): def cacheResponseFor(label: Stri...
Colloquium asked 24/10, 2015 at 15:9

4

Solved

In Play 2.3, I can disable certain filters based on different request path or method. However, I can't find a way to do it in Play 2.4. https://www.playframework.com/documentation/2.4.x/ScalaHttpFi...
Triste asked 23/12, 2015 at 7:57

2

I have a Play server (Play framework 2.3) implemented in Java. I want to keep logs of API calls in files limiting the maximum number of files and maximum size of each file. I have the below applica...
Pluralism asked 17/2, 2015 at 10:3

3

Solved

Is it possible to integrate Sass and Play Framework 2.3, so that Sass gets compiled to CSS? If so, how should I go about it? I've tried the play-sass plugin, but it doesn't build with Play 2.3, onl...
Cameroncameroon asked 5/6, 2014 at 10:44

5

Solved

Once I run 'sbt compile' on a 2.3 play project, I can't use 'sbt compile' to compile any Play 2.2.x projects anymore. This is the error when I run sbt command. [info] Loading project definition fr...
Popper asked 24/6, 2014 at 22:18

2

Solved

Why play-json Reads trait is not declared covariant: trait Reads[+A] Related gist: https://gist.github.com/robertberry/9410272 Does covariance/contravariance interfere with implicits? Or opti...
Phenomena asked 29/8, 2014 at 11:40

3

Solved

I use playframework 2.3.0, recently I want to add the CSRFFilter when I import csrf in global.scala: import play.filters.csrf._ I get an error for this: [error] G:\testprojects\app\Global.scal...

1

Solved

I am writing a webApp with Play2 for Java and want to use LDAP for user authentication... Im new to LDAP and actually don't know exactly how it works and how to use it in Play... for now I've foun...

2

Solved

From the activator console this works: scala> import play.api.libs.json._ import play.api.libs.json._ scala> val testVal = Some("foo") testVal: Some[String] = Some(foo) scala> Json.obj(...
Sullyprudhomme asked 11/12, 2014 at 17:30

1

In order to use WebJars in my Play app I've added the following route GET /webjars/*file controllers.WebJarAssets.at(file) In my scala template I've added the following lines: <link rel='sty...
Leprechaun asked 19/12, 2014 at 23:58

1

I'm trying to use sbt-web and sbt-js-engine in particular to resolve my dependencies with npm instead of webjars. My problem is that the dependencies are not copied in the target/web/public/main/l...
Rahr asked 1/2, 2015 at 16:42

2

Solved

I have a Play Application based on the play-scala Typesafe template (Play Scala Seed), and tried to add Slick 3.0.0 to the project and connect to a PostgreSQL database. First I added the dependenc...
Flummox asked 24/3, 2015 at 18:3

2

Solved

Recently, specs2 was updated to version 2.4, which uses scalaz 7.1 instead of 7.0.x now. Once I update my specs2 dependency in my play! 2.3 project to use version 2.4, all tests fail with the follo...
Haemostat asked 13/8, 2014 at 7:20

1

Solved

I would like an sbt setting to have a different value when running in development (sbt run) than production (sbt dist / sbt start). Specifically I am using sbt-uglify. I use it in development to c...
Cloakanddagger asked 13/5, 2015 at 22:7

0

In our tests, we make extensive use of stubs, some of which create and throw exceptions. I'm finding that just instantiating an exception, is causing a stacktrace to show up when our tests run. Thi...

2

Solved

I wish to use the scheduler of akka, the examples are saying: system.scheduler.scheduleOnce() but there is no real information where the "system" should come from. The documentation is a little ...
Shakta asked 8/5, 2015 at 12:52

1

Solved

Is there any way to Iterate all described services in routes file? URL and HTTP methods are needed. I need this feature for running some integration test. I am using Play for Java.
Andesine asked 5/5, 2015 at 6:40

1

I am currently using Play Framework and was wondering if there is a helper template out there (even by a 3rd party) that will add the HTML5 attributes (e.g. required) based on the model annotations...
Irreverence asked 24/4, 2015 at 20:18

3

Solved

Is there a way to speed up the build time of unit tests for Play Framework in Intellij? I am doing TDD. Whenever I execute a test, it takes about 30 - 60 seconds to compile. Even a simple Hello Wor...
Mush asked 21/4, 2015 at 7:25

1

I wanna write JSON validation for a few Scala model classes in Play framework 2.3x. I'm using JSON Reads to do that following the instructions (https://playframework.com/documentation/2.3.x/ScalaJs...
Dolph asked 31/3, 2015 at 6:26

0

In a typical web application, there are some things that I would prefer to run as delayed jobs/tasks. They tend to have some or all of the following properties: Takes a long time (anywhere from m...

© 2022 - 2024 — McMap. All rights reserved.