playframework-2.4 Questions
2
Solved
I've created a Play-java [v 2.4.2] project with using activator[v 1.3.5] that uses JDK 1.8 on Windows 64-bit OS. I've run activator run command and it works smoothly.
But when I open that project ...
Buffybuford asked 14/8, 2015 at 8:49
1
Solved
So I've been trying to figure this out on my own via documentation but I'm not getting anywhere.
I've got some simple DI bindings setup in a service class that creates a repository object. Simple...
Nicolais asked 29/8, 2015 at 19:1
1
Solved
What's the difference between Writes[-A] and OWrites[-A] in PlayFramework Json library? I have used Writes[A] but I can't figure out what's the purpose of OWrites. The same question applies to Form...
Sinecure asked 29/8, 2015 at 19:0
1
Solved
The documentation at https:// www.playframework.com/documentation/2.4.x/JavaDependencyInjection mentions that DI is now integrated into the framework:
Out of the box, Play provides dependency in...
Bunyip asked 21/7, 2015 at 16:59
2
I am trying to setup an Scala SDK Eclipse-based IDE to work with Play 2.4 on Windows 8. I followed instructions given on the official guide, but after opening default view index.scala.html, I get a...
Stagnate asked 14/6, 2015 at 11:55
2
Solved
Trying to schedule tasks like this in Play Framework 2.4.2 Scala without luck:
import akka.actor.Actor
import play.api.libs.concurrent.Akka
import scala.concurrent.duration._
import play.api.Play....
Magnetohydrodynamics asked 28/7, 2015 at 14:40
1
Solved
In my build.sbt I have
routesImport += "play.api.mvc.PathBindable.bindableUUID"
And in my routes I have:
GET /groups/:id controllers.GroupController.get(id)
And in my controller I have
class...
Octopus asked 28/7, 2015 at 6:44
2
In play 2.4, overriding the builder method in ApplicationLoader or implementing EagerBinding in Abstract module replaces the existing play 2.3 GlobalSettings onStart.
However in play 2.3 the onSta...
Puccoon asked 16/7, 2015 at 14:46
1
Solved
I am trying to work out how to use dependency injection in Play Framework 2.4. I am familiar with general principles, but don't really understand the implications for design. My general reasoning h...
Ahlgren asked 21/7, 2015 at 17:57
1
I have issues to understand how to apply the new feature of Dependency Injection in Play 2.4. I'm familiar with Guice and miss in the Play Documentation an explanation how and when the actual bindi...
Eucaine asked 19/7, 2015 at 13:56
2
Solved
Recently upgraded to Play 2.4 and I'm still learning all the little quirks and such. I'm trying to just get my index page working and I'm having a hard time of it, and I know it's something small I...
Nabonidus asked 6/7, 2015 at 10:57
1
Solved
I'm trying Play 2.4.2 for Scala and I'm not clear whether controllers should be defined as classes or singletons. The docs state:
A Controller is nothing more than a singleton object that genera...
Pennsylvanian asked 11/7, 2015 at 14:46
1
Solved
I'm starting up my first Play 2.4 project and I'm having an issue with IntelliJ recognizing and finding the JUnit and Play test classes. Here is a screenshot of what I see
So basically, the code...
Whang asked 4/7, 2015 at 15:17
2
Solved
So, I'm trying to implement compile time DI with something that looks like this:
package modules
class MyModule extends AbstractModule {
def configure() {
bind(classOf[MyT]).to(classOf[MyTImpl]...
Agripina asked 1/7, 2015 at 7:58
0
I'm writing a custom validator for json objects.
The default method is to create a case class T and an implicit reader of type Reads[T].
This is what my code looks like (I've created a simple "al...
Rizas asked 26/6, 2015 at 16:25
1
Solved
Play 2.4 discourages using GlobalSettings.onStart and whole Global object.
I'm using play-slick and it has great DI sample in GitHub, but it is missing a example how to do database initialization....
Bandbox asked 20/6, 2015 at 11:35
1
Solved
I'm using Play 2.4.0 and I've been trying to follow the tutorial from the main page: https://playframework.com/
which is for Play 2.3 and after solving a couple of issues regarding changes in the E...
Zacek asked 31/5, 2015 at 20:58
1
I'm using Play 2.4. I'd like to replace the default router, with my own class, using the new dynamic dependency injection play feature. What are the steps to do that?
Scavenge asked 22/5, 2015 at 7:58
© 2022 - 2024 — McMap. All rights reserved.