playframework-2.0 Questions

1

Solved

I'm wondering how does @Inject annotation in Play-Scala works. It obviously injects a dependency, but I'm curious how is it working. When I was using it on class extending controller and set routes...
Orthopedist asked 20/6, 2015 at 9:39

2

Solved

When I was using Play 1.2, I was able to annotate some methods inside any controller with @Before or @After (and others...) in order to execute a method before or after each request inside this con...
Vigilant asked 2/10, 2012 at 0:57

2

Solved

This question might seem stupid, but I cannot find any instruction on how to roll back an evolution in Play 2.0. Google only finds pages which say that the "Downs" section of an evolution file is u...
Whisler asked 9/4, 2012 at 5:19

4

I have a WebSocket in my Play application and I want to write a test for it, but I couldn't find any example on how to write such a test. I found a discussion in the play-framework Google group but...
Hocuspocus asked 3/5, 2013 at 8:15

4

Solved

I have a Play 2.0 app deployed on EC2 and I start the app with play start and it runs in the background, I can hit Ctrl-D and the process will continue to run in the background but then it dies aft...
Batchelder asked 23/5, 2012 at 23:50

2

Solved

I want to test how sub projects work, especially how the routes of the sub project are taken into account in main project (this was not visible before). I have read the docs here: https://github.c...
Eatage asked 29/1, 2013 at 15:53

3

Solved

I have a problem with adding a field to Json object in Play Framework using Scala: I have a case class containing data. For example: case class ClassA(a:Int,b:Int) and I am able to create a Jso...
Translator asked 4/4, 2014 at 6:57

1

I am creating web-service APIs using the Play framework with Java. I have created the service successfully. WHAT I DID: In one web service request, I have sent the base64 string. If I passed the...
Bricky asked 18/5, 2015 at 14:56

1

Solved

Is there a way to perform conditional logic while parsing json using Scala/Play? For example, I would like to do something like the following: implicit val playlistItemInfo: Reads[PlaylistItemInf...
Vogt asked 14/5, 2015 at 20:6

3

Solved

I have a problem with the play framework 2.1.1 (Java) telling me that I am sending Invalid JSON. There has been a similar /possibly the same issue for the play framework 2.x and 2.1.0, but it was s...
Rallentando asked 11/5, 2013 at 21:9

1

WHAT I DID: I am developing Rest web services using POST method in the play framework(Using Java). I did create simple web service POST API and also called it from the client side. WHAT I WANT: ...
Retention asked 12/5, 2015 at 11:52

6

Solved

Lets say I have an already functioning Play 2.0 framework based application in Scala that serves a URL such as: http://localhost:9000/birthdays which responds with a listing of all known birthday...
Elegist asked 11/3, 2012 at 17:29

3

Solved

I'm developing a web application using the Play Framework with JPA/Hibernate. For debugging purposes, it would be great to see the SQL statements used by JPA. There already is another thread with t...
Seymore asked 1/3, 2014 at 11:51

2

Solved

I want to set the time zone for the java application written in PlayFramework to UTC How to set timezone to UTC in Play Framework 2.0 for both production and tests? I have referred to the above ...
Handspike asked 29/10, 2014 at 7:12

2

Solved

I am building an app in java on play 2.2. I have a java enum as a parameter in a function that I use in routes. This is my enum class. I searched around and found out I need to implements QueryS...
Aquaplane asked 30/1, 2014 at 22:10

1

Solved

I'm reading up on Java's Play framework but don't have much experience in Java. Can someone please explain this Promise<Double> promiseOfPIValue = computePIAsynchronously(); Promise<Resul...
Paediatrics asked 8/5, 2015 at 15:33

1

We are developing a project with Java on Play Framework 2.x and have some rest endpoints. Also we have some test cases for them like as follows: @Test public void testLogout() throws Exception {...
Bungalow asked 4/5, 2015 at 13:1

2

Solved

I'm trying to make my first tests with Scala and with Play framework. I have installed play 2.2.0, which seems to be the last version, with the standalone package. After that, I've been able to cr...
Counterpart asked 26/10, 2013 at 12:48

0

The question: why is it ignoring the MergeStrategy.first? I've made a minor application within the Play Framework using version 2.3.8 According to the official documentation you can add the line a...
Puffy asked 25/4, 2015 at 17:27

1

I'm looking for something like def proxy = Action.async { implicit req => //do something with req val newRequest = req.map( r = r.path = "http://newurl"); forward(newRequest) } I saw that ...
Macro asked 23/4, 2015 at 16:45

6

Solved

I tried to write an application on playframework + scala + Angular JS. The purpose was to create an web app that would work either good when JavaScript is OFF or ON in the browser. This is usual re...
Inadvisable asked 13/9, 2013 at 15:56

2

Solved

I'm trying to define an optional query parameter that will map to a Long, but will be null when it is not present in the URL: GET /foo controller.Foo.index(id: Long ?= null) ... and I essentiall...
Gustation asked 6/3, 2014 at 19:30

2

Solved

I have an Akka actor that validates random data and makes some changes to it based on that data's show time and updates it. Currently what I'm doing is using this code inside a controller: static ...
Liechtenstein asked 16/4, 2012 at 16:2

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...

5

Solved

There's no eclipse folder in project folder after 'play eclipsify'. How to debug this project use eclipse with JPDA?
O asked 19/3, 2012 at 22:23

© 2022 - 2024 — McMap. All rights reserved.