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
35
votes
6 answers

UnsupportedClassVersionError on running play application with JDK 1.7

Just now started learning Play framework for my project requirement and my project only build on JDK 1.7 so I have downloaded Play 2.3.9 version and created a sample project by typing activator new. Then moved into the sample project directory and…
Pokuri
  • 2,994
  • 7
  • 28
  • 51
34
votes
3 answers

How to properly integrate HTML5 Boilerplate with Twitter Bootstrap?

In my Play 2.0 project I already have Bootstrap integrated (as the less files, Play can compile them in the fly) but now I found Boilerplate and I think it would be a nice idea to make use of it also. After a bit of googling I found…
Piotr Kukielka
  • 3,622
  • 3
  • 29
  • 40
34
votes
4 answers

jQuery JSON response always triggers a ParseError

I am trying to preform some basic operations with jQuery and JSON. Presently having difficulty with jQuery accepting JSON response from my play framework application. Below is a simplified version of the code that still produces the…
Chesrae
  • 345
  • 1
  • 3
  • 4
34
votes
4 answers

Play Framework: How to change play default packages?

I was just wondering if it is possible to change the default packages from Play. For example: I want to change the "controllers" package to "com.test.controllers". I don't know if this makes any sense, but I just want to know how if it is possible.…
Alan Souza
  • 6,525
  • 8
  • 40
  • 58
34
votes
3 answers

How to use IntelliJ with Play Framework and Scala

I am trying to use IntelliJ with a play framework 2.11 application. I installed the Play Framework 2 plugin and the Scala plugin for IntelliJ. I created a Play application. I have been struggling writing and running Specs 2 tests in IntelliJ. My…
noplay
  • 2,221
  • 6
  • 23
  • 32
34
votes
4 answers

How to integrate Play Framework 2.0 into Gradle build management using Maven dependencies?

Play framework 2.0 is a full-stack standalone framework for creating web applications. Probably, many people need to integrate it into their build management, nevertheless. Unfortunately, I did not find much information about his. Here is my use…
Kai Wähner
  • 4,730
  • 4
  • 30
  • 32
33
votes
9 answers

Limit Java Heap Space for play framework globaly

I have a very old linux system and installed java and play framework. When I run java I get: java -version Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. So I…
reen
  • 2,381
  • 5
  • 26
  • 39
33
votes
4 answers

Frameworks comparation: Lift, Play and Wicket

What are the advantages and dis­advantages of frameworks Lift, Play and Wicket? What characteristics are best or only supported by each? Thanks
adelarsq
  • 3,498
  • 4
  • 33
  • 46
33
votes
6 answers

How to detect application mode in Play 2.x

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 to do something like this from inside a…
kes
  • 5,513
  • 8
  • 39
  • 69
32
votes
9 answers

Route to static file in Play! 2.0

I'm trying to make a route to a specific static file but everything I'm trying ends with an error. I've made 3 different attempts: 1. GET /file staticFile:/public/html/file.html The error I get: Compilation error string matching regex `\z'…
Nitzan Tomer
  • 120,901
  • 33
  • 273
  • 264
32
votes
4 answers

Separate back-end and front-end apps on same domain?

We are building a fully RESTful back-end with the Play Framework. We are also building a separate web front-end with a different technology stack that will call the RESTful API. How do we deploy both apps so they have the same domain name, with…
Erich
  • 2,359
  • 2
  • 19
  • 23
32
votes
6 answers

Playframework and Django

I have worked with Django before and have recently seen the Play framework. Is this the Java community's answer to Django? Any experiences with it? Any performance comparisons with other Java web frameworks? Edit:Almost similar to this question, the…
n002213f
  • 7,408
  • 13
  • 64
  • 100
32
votes
7 answers

Play Framework 2.1 - AngularJS routing - best solution?

I am working my way through the AngularJS tutorial. Angular uses it's own JS routing mechanism to allow for single page apps. A sample routing file for Angular looks like this: angular.module('phonecat', []). config(['$routeProvider',…
Dominic Bou-Samra
  • 13,072
  • 26
  • 92
  • 146
31
votes
3 answers

What is the difference between 'CompletionStage' and 'CompletableFuture'

I have seen an example in each of them, but I need to know exactly what is the difference in deep, Because sometimes I think I can use both of them to get the same result, So I want know so that I can choose the correct one? What is the benefit of…
Ebraheem Alrabeea
  • 1,453
  • 3
  • 17
  • 31
31
votes
2 answers

Play's execution contexts vs scala global

How does the execution context from import scala.concurrent.ExecutionContext.Implicits.global differ from Play's execution contexts: import play.core.Execution.Implicits.{internalContext, defaultContext}
bjfletcher
  • 9,975
  • 3
  • 44
  • 64