playframework-2.0 Questions
2
Solved
I'm migrating a Scala Play application to 2.5 and am currently moving my components to dependency injection. There's one place left where I'm at a loss how to do it though. I have a PathBindable im...
Annecorinne asked 5/4, 2016 at 9:31
4
Solved
I found there is such a configuration in application.conf:
# If enabled, log SQL statements being executed.
db.default.logStatements=true
I've enabled it, but I can't find any log file which log...
Lithesome asked 21/2, 2012 at 3:48
2
Solved
I am getting an NPE when invoking sbt within a sample app.
Please note: we can not run our overall app using "play": we need to be able to run this via sbt.
C:\apps\playframework\samples\scala\we...
Yaker asked 21/5, 2014 at 0:37
6
Solved
I wanted to develop a RESTful Application with use of CRUD in Play framework. Unfortunately I can't find a way to define DELETE and PUT in the routes of Play. Maybe there is just POST and GET avail...
Rimester asked 12/12, 2012 at 18:8
7
I found fragmented instructions here and some other places about deploying Play2 app on amazon ec2. But did not find any neat way to deploy using Beanstalk.
Play is a nice framework and AWS beanst...
Ptolemaic asked 2/3, 2014 at 23:17
3
Solved
We have a relatively large REST API build on top of Play 2.x and are tasked with documenting it for our internal users. Since it is our belief that maintaining this on a separate wiki is very diffi...
Disappointment asked 27/11, 2013 at 19:13
2
Solved
I would like to add build information to the footer of my Play! application (Play! 2.0.4 with Scala), similar as done here on stackoverflow. I'm new to SBT and just happy that most of the time ever...
Matelot asked 25/1, 2013 at 5:49
4
In html, a form with multipart data:
<form action="@routes.Files.upload" method="post" enctype="multipart/form-data">
<input type="hidden" name="groupId" value="1" />
<input type=...
Burkes asked 26/2, 2012 at 10:31
2
Solved
I am trying to install play framework 2.0.1 on ubuntu 11. I have added the path to play in ubuntu, I have SUN JRE 1.6 configured (java/javac) and I have given read/write/execute privileges to the p...
Nkvd asked 11/5, 2012 at 22:17
5
Solved
I know that for the classic Play framework it's play debug ~run. I tried running activator debug ~run but I get the following error:
[error] Not a valid command: debug (similar: idea)
[error] Not ...
Paragon asked 20/10, 2013 at 4:29
1
Solved
I'm trying to read Json data in my Play Scala program. The Json may contain nulls in some fields, so this is how I defined the Reads object:
implicit val readObj: Reads[ApplyRequest] = (
(JsPath...
Kathiekathleen asked 19/2, 2016 at 13:0
1
Solved
I have this controller in Scala:
def commonRedirect(anId: Long) = {
implicit val aRule = CommonClient.getTheRule(anId)
aRule match {
case false ⇒ Redirect("/general-rule/" + anId)
case true ⇒ Re...
Inarch asked 18/2, 2016 at 13:42
5
Solved
Currently I define my app's javascript router in a fairly verbose way
def javascriptRoutes = Action { implicit request =>
import routes.javascript._
Ok(Routes.javascriptRouter("jsRoutes")(
L...
Intolerance asked 17/8, 2012 at 20:23
1
Solved
I'm using the frameworks mentioned in the title with the following configuration:
"com.typesafe.play" % "sbt-plugin" % "2.4.2"
"org.scalacheck" %% "scalacheck" % "1.12.4" % "test"
"org.scalatest"...
Annice asked 27/8, 2015 at 8:2
2
Solved
In my play 1.x controller I had this:
public static void language(final String language){
Lang.change(language);
Header referer = request.headers.get("referer");
if(referer == null){
index();
...
Simon asked 16/5, 2012 at 10:17
10
Solved
I'm new to Play framework. I'm trying to configure MySQL database as a datasource to be used with Play Ebeans.
Could you some one please explain the steps that are needed to configure MySQL with ...
Oftentimes asked 4/4, 2012 at 7:56
4
So, I'm trying out Play 2 with Eclipse. I create a new project, compile it, run eclipsify and import it into Eclipse. So far so good.
The problem I'm having is that when I make a change in the Sca...
Frosty asked 6/4, 2012 at 11:43
2
I am using scala template with input helper.
The class attribute which i use applies style for the <input> tag.
How do i apply the style specific to the generated <label> tag?
@input...
Overseas asked 17/5, 2013 at 9:46
1
Solved
In a Scala-based Play application, I'm trying to initiate a singleton service without requiring a request to a controller. I've followed the directions in the 2.4 API documentation to create a sing...
Methylal asked 28/1, 2016 at 16:48
2
Solved
I am going through the Video introduction to Play Framework and, but I am stuck creating a DB object with SORM because the import fails.
I tried to add the dependencies in plugins.sbt, and relaunc...
Plumcot asked 27/2, 2015 at 7:29
2
I'm used to work on Ruby on Rails projects and to use the rails console command to test all my models before doing anything else. I've recently switched to the Play Framework 2.4.x due to some choi...
Cowgirl asked 21/1, 2016 at 16:26
2
Solved
Whats the easiest way to have the output of a flow be sent to a web socket in Playframework with Scala.
I want the WebSocket to act as the sink of the stream.
For example the source generate a ran...
Tarr asked 17/12, 2015 at 17:54
2
I have installed the following:
1.Play 2.4
2.Created a scala project
3.added the eclipse plugin
Now I wanted to add a database connection. I want to tryout ReactiveMongo, but the instructions on t...
Dianoetic asked 29/5, 2015 at 20:42
2
Solved
I'd like to provide optional plurality to my routes in a Play application. For example:
/path/1
/paths/1
The route URL I tried was something like this:
/path<[s?]>/:id
If I put just a $...
Guardhouse asked 26/12, 2013 at 19:0
4
Solved
I will start with the question: How to use Scala API's Iteratee to upload a file to the cloud storage (Azure Blob Storage in my case, but I don't think it's most important now)
Background:
I need...
Surveying asked 11/8, 2012 at 19:13
© 2022 - 2024 — McMap. All rights reserved.