playframework-2.0 Questions

7

Solved

I'm using play-json's macros to define implicit Writes for serializing JSON. However, it seems like by default play-json omits fields for which Option fields are set to None. Is there a way to chan...
Barthold asked 5/3, 2014 at 7:43

3

Solved

Is there a way to increase heap size for Play Framework 2.1? Below are some of the actions we have tried and it doesn't seems to take into effects: 1) Adding a "jvm.memory=-Xmx1024M -Xms2048M" pa...
Deltoid asked 13/9, 2013 at 4:55

11

I've created a play project with play 2.3.7 In the project directory, I ran activator and ran the eclipse command to generate eclipse project files. When I go to eclipse (I'm using the Scala IDE ...
Spinach asked 11/2, 2015 at 15:50

2

Solved

I'm stuck with a slick query and I unfortunately can't find a similar example. Config: scalaVersion := "2.11.7" libraryDependencies += "com.typesafe.play" %% "play-slick" % "2.1.0" Heres the sc...
Parry asked 19/12, 2018 at 9:11

7

actually I am doing redirect from one play application to another play application, finally I receive response as Result object.. Below is the action in two applications. I am redirecting from apll...
Rangefinder asked 10/10, 2014 at 13:55

3

Solved

We've started experimenting with Scala and the Play framework at my work. Setup our auto-linting and testing framework as the first thing, and have deployed Scalastyle to handle the former. That h...
Sweetener asked 26/2, 2015 at 12:14

2

Solved

How can I cast from a String to a long in a Scala play 2.0 template? I want to do the following where I have the action: Application.profile(Long user_id): <a href='@routes.Application.profile...
Apotropaic asked 2/5, 2012 at 2:14

4

Solved

[Sally] $ run [info] Updating {file:/Users/MyName/Desktop/sally/todolist/}Sally... Waiting for lock on /Users/MyName/Documents/play-2.1.3/repository/.sbt.ivy.lock to be available... Sally is my ...
Ventral asked 2/9, 2013 at 18:6

2

Solved

I am trying to run my Play2 project. When I type activator run in my terminal, it is loading and finally gives me this error message: p.c.s.NettyServer - Failed to listen for HTTP on /0.0.0.0:9000...
Trochanter asked 25/1, 2017 at 18:34

6

Solved

In Java Http request, we can do this to make multipart HTTP POST. HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url); FileBody bin = new FileBody(new File(file...
Chaldea asked 5/6, 2012 at 1:6

5

Solved

I am working on Play framewrok 2 with websocket and JsonNode . the front end is connected to the play framework backend by use of websocket. I converted a javascript array into a json node and sent...
Hege asked 18/7, 2012 at 7:11

3

Solved

Originally posted and answered here: https://groups.google.com/forum/#!topic/play-framework/s-ufMIbLz3c But when I put: <div> @if (request.uri == "/") { "Home Menu Selected" } </div&gt...
Muskellunge asked 17/9, 2013 at 1:8

2

Solved

We have a play application written in Scala. We wanted to completely disable CSRF filter based on our requirement. there is no much instruction given on the play document (https://www.playframework...
Titicaca asked 24/4, 2017 at 7:17

6

Solved

From within a Play 2.1 application, how would I programmatically determine which mode the application is running in (i.e., Development vs. Production)? For example, it would be useful to be able t...
Lysippus asked 30/1, 2013 at 20:31

1

I would like to set HTTPS only for my application. For that, I'm using LetsEncrypt to generate my certificate and to be my CA. LetsEncrypt generated these files for me: root@myapp:/opt/letsencryp...

6

Solved

Apparently Play 1.x had a command 'play secret' that would create a new application.secret, but I don't see an equivalent command in Play 2.x. It is recommended to change the key when moving from d...
Soho asked 24/9, 2013 at 18:19

2

I have a huge message file which i need to split into multiples files for different languages. For example : I created one folder for English locale i.e. en and another for French locale , fr insi...
Huertas asked 8/11, 2013 at 7:41

7

Solved

I created a new project and working with eclipse (used eclipsify command). basically, I moved the app directory from an old project to the new one I created. the problem is that eclipse doesn't r...
Mansour asked 21/9, 2012 at 11:20

4

I'm doing some testing with Apache Spark, for my final project in college. I have a data set that I use to generate a decision tree, and make some predictions on new data. In the future, I think t...

4

Solved

I am new to Play Framework (2.0.4). I have developed a little app and ran it locally on built-in play framework web server. Now I want to deploy it on remote server (APPFOG.COM or any other web ser...
Farad asked 11/11, 2012 at 14:8

2

Solved

{ "people": [ { "name": "Jack", "age": 15 }, { "name": "Tony", "age": 23 }, { "name": "Mike", "age": 19 } ] } Thats a sample of the json I'm trying to parse through. I want to be ab...
Homes asked 26/3, 2013 at 17:38

3

Solved

I have html to post back a form, like this: @(message: String) @main("Contact") { <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/contact.css")"> <div id="page...
Quid asked 3/12, 2012 at 17:35

1

I am getting this error on freshly created Play 2.1.3 application. I am running Java 7u25. I created new application and ran it with "play run" from within application directory. Unexpected except...
Inalterable asked 4/9, 2013 at 20:55

1

When starting up a Play server in the an IntelliJ project using the sbt shell, you get the prompt: [IJ]sbt:app> run --- (Running the application, auto-reloading is enabled) --- [info] p.c.s.A...
Karsten asked 22/2, 2018 at 6:25

3

Solved

I got this error from an Play 2.0.3 java application. How could I restart Heroku Postgres Dev DB? I could not find any instructions to restart the DB on Heroku help center. app[web.1]: Caused by:...
Alloy asked 14/8, 2012 at 9:6

© 2022 - 2024 — McMap. All rights reserved.