Questions tagged [playframework]

Play Framework is a modern open-source web framework for Java and Scala.

Play Framework is a modern open-source web framework for Java and Scala. Play provides a clean alternative to legacy Java stacks. Play is based on a lightweight, stateless, web-friendly architecture. Play has two versions: Play 1.x and Play 2.x.

Other related tags

Play Resources

Play 1.x Resources

Play 2.x Resources

17050 questions
5
votes
1 answer

Request queue in Play framework

I have recently faced a problem with request queue in Play framework. When server is overloaded and is unable to handle request on time requests are put in the queue. Even if requester disconnects request still stays in the queue and will be handled…
5
votes
1 answer

(Play Framework 2.3.x) How to get the previous url?

In play Framework, how can I get the URL the user came from in a controller? I've tried request.url, but that isn't working.
Kory
  • 357
  • 1
  • 3
  • 22
5
votes
3 answers

How to keep separate dev, test, and prod databases in Play! 2 Framework?

In particular, for test-cases, I want to keep the test database separate so that the test cases don't interfere with development or production databases. What are some good practices for separating development, test and production…
tuxdna
  • 7,669
  • 3
  • 36
  • 59
5
votes
2 answers

Inner join in play framework ebean

I have a query which i want to write in my Product model select * from shop inner join product on product.shops_id=shop.id where product.name=keyword Shop.java public class Shop extends Model { @Id @SequenceGenerator(name="shop_gen",…
akku
  • 469
  • 5
  • 17
5
votes
2 answers

convert Iteratee to Result

I am writing test-cases for my play application controller, and I am having trouble getting the action result. val jsonresult = UserController.importOPML()( FakeRequest(POST, "/user/import-opml",FakeHeaders(),data) .withCookies(cookie)…
zinking
  • 5,018
  • 4
  • 43
  • 76
5
votes
1 answer

Playframework 2.2.x + Java +JPA - Separate Database for Unit Testing and Production

I am using Java + Playframework + JPA using PlayFramework 2.3-M1 for developing application. I want to use MySQL database when I run the aplication, but when I run test using activator test I want to use in memory database H2. How can this be done…
Reg Mem
  • 553
  • 1
  • 6
  • 19
5
votes
1 answer

Can Akka Actors replace Service layer?

This is more of a design and best practices question. I am converting an app to use Actors and Futures. Currently these are the layers (before Akka is in the mix) . Play Controller -> Service layer -> (Slick) DAOs Now want to have something like …
user2066049
  • 1,311
  • 1
  • 12
  • 24
5
votes
1 answer

How to bind a array form field with Playframework scala

The form I have to handle has something like this:
5
votes
1 answer

Play Framework takes extremely long time to resolve dependencies

Since last Friday, my Play Framework apps are taking upwards of 15 minutes to compile, due to extremely long times resolving dependencies. The dependencies reside on repo.typesafe.com, repo1.maven.org, and several others, including ones like…
5
votes
1 answer

How to use same database transaction in separate thread with Play Framework 2.2

From play's documentation: Because of the way Play 2.0 works, the action code must be as fast as possible (ie. non blocking). So what should we return as result if we are not yet able to generate it? The response is a promise of result! So I…
spierce7
  • 12,064
  • 11
  • 56
  • 91
5
votes
1 answer

Difference between static controller and non static controller in play framework with Java

I was wondering if there was any significant advantage, or disadvantage, when using non-static controllers in a Java Play!Framework 2.2.x app. I normally use the clasic static controllers that seem to be the default pattern for Play!. But whenever…
le-doude
  • 3,224
  • 1
  • 21
  • 52
5
votes
1 answer

Play Framework 2: Best way of validating individual model fields separately

For this example, lets assume the user would like to update just the first name of his online profile. Form:
5
votes
2 answers

Use PostgreSQL JSON type with Slick 2 code generator

I'm using Slick 2 code generator in my Scala/Play application to generate table classes of my PostgreSQL database. Some of the fields are JSON type though and they are turned into a String by the generator. I was wondering if I can somehow use…
Caballero
  • 9,738
  • 18
  • 89
  • 151
5
votes
2 answers

Play Framework handle Authorization not authentication

I am developing an application with Play Framework 2.2 and Java I have implemented the authentication module just like the following tutorial http://www.playframework.com/documentation/2.1.0/JavaGuide4 In a nutshell implemented a class Secured as …
Siavosh
  • 2,136
  • 4
  • 20
  • 44
5
votes
1 answer

Play Framework: Configuring system properties

In play framework (2.2.1 & sbt 0.13) I have an IntegrationSpec that brings up a TestServer. I need to be able to set SSL specific System Properties for the TestServer. So far the only way I have been able to set it up correctly is passing them as…
Prasanna
  • 3,483
  • 7
  • 41
  • 71
1 2 3
99
100