playframework-2.0 Questions
1
I've implemented authorization for my Play Framework (version 2.3.5) application as per the official security documentation:
trait Secured {
def username(request: RequestHeader) = request.sessio...
Fingerstall asked 10/10, 2014 at 16:12
2
Solved
Currently, I used a plugin like this:
addSbtPlugin("com.tuplejump" % "sbt-yeoman" % "0.7.1")
But then, I fork this plugin on github (let's say https://github.com/myname/play-yeoman.git) and make...
Lanlana asked 8/3, 2015 at 9:20
3
Solved
I'm planning my website structure as following:
header.scala.html
XXX
footer.scala.html
now, instead of "xxx" there should be a specific page (i.e. "UsersView.scala.html").
what I need i...
Tortoise asked 1/8, 2012 at 16:48
1
Solved
I have a Many to Many relationship setup like this:
Person <-> PersonField <-> Field
Now I want to query not only all the fields of a Person (I can do that), but a joined version of PersonF...
Ebeneser asked 8/9, 2015 at 22:14
6
Solved
I've read
How to configure playframework server to support ssl
and I also tried to follow http://www.playframework.org/documentation/1.1.1/releasenotes-1.1#https but it doesn't work for me
many th...
Sleave asked 25/5, 2012 at 3:58
2
Solved
I only can find Play 1.x has this setting. How to set this in Play 2.X?
http://www.playframework.org/documentation/1.2.4/configuration
application.defaultCookieDomain
Enables session/cookie sh...
Matriculate asked 5/2, 2013 at 3:0
9
Solved
Play Framework 2.0 doesn't seem to have much / any support for Netbeans. I'm currently just using it as an editor (loading the files using the favorites tab), but it's a little frustrating that Net...
Tightfisted asked 11/4, 2012 at 20:54
2
Solved
A play project has a "project" folder like this:
project
target
project
target
I always thought this is just one of those life mysteries that I shouldn't think too much about, but today m...
Priggery asked 13/12, 2015 at 18:16
1
I am new to Scala and even what I am trying to achieve is too simple with Java, i feel confused with Scala.
What I want is to get a User and then fill his Permission using another query and based ...
Kinsfolk asked 4/12, 2015 at 14:16
2
Solved
I'm developing a project in Play 2.4, and I run it using the activator UI. I recently had to forcibly stop the app by pressing "Stop" on the UI, and I haven't been able to get it to work since. Now...
Achaemenid asked 5/6, 2015 at 22:2
4
Solved
Updated 08.18.2012
I am using Play 2.0.2 and I want to deploy my app to Amazon Webservices. I think the easiest way to do this is via Elasticbeanstalk.
I used Play2war to package my app
https:...
Deteriorate asked 12/8, 2012 at 0:32
2
Solved
I've a simple CRUD app built with Scala Play 2.4.3 and Play-slick 1.1.0 (slick 3.1.0) that uses a MySQL database for persistent storage.
I was trying to create the tests for my app and I saw 2 mai...
Auditor asked 29/11, 2015 at 22:10
1
Solved
I'm producing JSON with Play 2.4.3 & Scala in the following fashion, providing an implicit Writes[DeviceJson] created with Json.writes.
import play.api.libs.json.Json
case class DeviceJson(na...
Superintendent asked 1/12, 2015 at 10:8
4
Solved
I have a question about loading properties from custom configuration files. I have tried
two different approaches to loading my oauth.properties file but I can't
get either to work so I'm hoping so...
Despain asked 1/5, 2012 at 1:36
1
Solved
I am new to the playframework and just learning.I am a little confused between dependencies, modules, plugins and sub-projects. How do they differ from each other?
Here's what i have understood, i...
Bluefarb asked 18/11, 2015 at 3:23
1
Solved
I am new to Scala, Slick and Play but I am trying to do some little service using this technology. I have a problem with a proper way how to check existence of item in DB.
Play action -- simple to...
Pfeffer asked 10/11, 2015 at 10:33
2
Solved
I'm currently exploring Play framework 2 and I must say that I'm impressed!
There is only one thing that I can't rap my head around(for the moment) and
that is the search implementations.
Currentl...
Oaken asked 1/10, 2012 at 13:27
2
Solved
I tried pushing some evolutions to Heroku:
2012-08-30T10:58:00+00:00 heroku[slugc]: Slug compilation finished
2012-08-30T10:58:02+00:00 heroku[web.1]: Starting process with command `target/start -...
Villalba asked 30/8, 2012 at 11:11
2
Solved
I am still developing first version of my application on play 2. How could I regenerate evolution scripts?
Deuteranope asked 29/5, 2012 at 21:25
4
Solved
How to create a Promise<Result> in Play 2.0 framework - Java
I see this link http://www.playframework.org/documentation/2.0.4/JavaAsync. it doesn't contain that much details. do you known an...
Pascasia asked 3/10, 2012 at 12:31
2
Solved
I'm developing a system to discover subprojects at compile time. This works. See here. Now the only issue is that the subproject's route file is being ignored.
I know that the normal way to includ...
Ferromanganese asked 29/6, 2015 at 16:6
1
Solved
I am trying integrate some existing code with the play framework. I downloaded the 1.3.6 minimal Typesafe Activator package. I created a play-java project and modified the
build.sbt file with thes...
Purify asked 20/10, 2015 at 23:28
1
I have a JSON REST API server built with Play framework v2.3 with scala, and I have controller's action like this for example:
def register = Action.async(BodyParsers.parse.json) { implicit reque...
Peking asked 25/3, 2015 at 12:15
3
Solved
In Play 1.0, we can define some jobs which will be executed in the background:
@OnApplicatonStart
@Every("1h")
public class DataJob extends Job {
public void doJob() {
// ...
}
}
But I can't ...
Petrina asked 18/2, 2012 at 8:16
1
Solved
I am trying to implement a WebSockets based solution with Play2 and Java. Currently I'm not using Actor Model for concurrency management. Instead, it's just handling the WebSockets using callbacks....
Medievalist asked 5/10, 2015 at 16:41
© 2022 - 2024 — McMap. All rights reserved.