playframework-2.0 Questions

3

Solved

I had form for editing order but I had to add button for removing order. Now I have form with two submit buttons: @helper.form(routes.Order.editOrder,'class -> "form-horizontal") { @helper.inp...
Nolita asked 22/12, 2012 at 23:45

3

Solved

LESS compilation in my fresh Play 2 install is genuinely slow. Even after placing an '_' on files that do not need direct compilation, a page refresh after a LESS edit takes ~8 seconds to complete....
Bedeck asked 3/12, 2012 at 20:15

2

Solved

Again and again I am struggling when a function relies on some future results. This usually boils down to a result like Future[Seq[Future[MyObject]]] To get rid of that I now use Await inside a he...
Crank asked 29/11, 2013 at 0:58

4

Solved

I use the Play Framework 2.0 (2.0.3). I have a Java project and want to read the application version (appVersion) defined in Build.scala. What I already saw is that it's possible to read certain c...
Navy asked 11/9, 2012 at 12:41

2

Solved

Perhaps I'm just overlooking something obvious but I can't figure out how to bind a form field to a double in a Play controller. For instance, assume this is my model: case class SavingsGoal( tim...
Pusillanimous asked 6/10, 2012 at 11:39

4

Solved

I'm using Intellij to build a Play 2 web app in Scala. However, I keep getting this error inside Intellij. SBT project import [warn] [FAILED ] xalan#serializer;2.7.1!serializer.jar(src): (0ms) [...
Plutocracy asked 29/10, 2014 at 14:42

3

Solved

In order to improve the readability in the Scala forms I use indentation and new lines frequently. But when I verify the HTML when my play application is up and running I see a lot of white spaces ...
Settle asked 9/7, 2012 at 20:29

2

Solved

I am trying to figure out how to do a redirect within a controller action in Play (2.0) using Scala. The redirect using Redirect(routes.Application.index) works just fine. What I cannot figur...
Erlond asked 4/4, 2012 at 21:20

3

I found some articles on the internet and some discussions on google group, but they don't work any more. How to do it with the latest play2-RC3 ?
Switch asked 22/2, 2012 at 7:36

2

Solved

Anyone can show me how to convert case class class instances to JSON in Play framework (particularly Play v2.3.x) with Scala? For example I have code like this: case class Foo(name: String, addre...
Tolyl asked 7/1, 2015 at 11:56

1

Solved

(Example project provided) I cannot get sbt-concat to work as designed to find and concatenate stylesheets that result from styles that may be produced from preprocessor tasks. In my production app...
Seiter asked 14/2, 2015 at 10:56

1

Solved

I'm using Playframework for the firstime in combination with Ebean. Now I want to use MySQL as database so I added: db.default.driver=com.mysql.jdbc.Driver db.default.url="jdbc:mysql://localhost...
Ancylostomiasis asked 17/2, 2015 at 7:53

2

Solved

I'm struggling a bit with the play 2.0 templating system; I have a method that returns what in scala is an 'Int' and I want to format it using the pattern "#,###". I have tried @order.itemCount()...
Ministration asked 9/5, 2012 at 11:26

2

Solved

Play's JSON serialization is by default permissive when serializing from JSON into a case class. For example. case class Stuff(name: String, value: Option[Boolean]) implicit val stuffReads: Reads...
Met asked 25/4, 2014 at 16:4

1

Solved

I am trying to read in data sources from my application.conf file, but every time I run my server, or try and run test cases, I am getting an error saying that there is no application started. Her...
Lifelike asked 7/2, 2015 at 20:49

1

Solved

I want to point multiple subdomains and/or root domains to a single Play Framework 2.3 (Scala) application, for example apples.com, bananas.com or buy.bananas.com. Depending on which domain the re...
Heikeheil asked 5/2, 2015 at 20:20

3

Solved

I have this simple test Scala application, which a blocking http request: build.sbt name := "hello" version := "1.0" scalaVersion := "2.11.2" libraryDependencies += "com.typesafe.play" %% "pla...
Shekinah asked 6/10, 2014 at 16:14

2

Solved

I would like to control the logging by configuring log level in logger.xml. I used play.Logger with level ERROR set in logger.xml but logger with level INFO, DEBGU are also getting logged. I hav...
Fa asked 22/11, 2012 at 14:38

1

It seems that when using Play Framework 2.2.2 with eBean ORM the @play.db.ebean.Transactional does not rollback transaction when an Exception is thrown. Does someone of you know something about t...
Washery asked 1/4, 2014 at 19:50

2

Solved

Let's say we have an SBT project bar with a dependency on some artifact foo: val bar = Project('bar', file('.')).settings( libraryDependencies += "com.foo" % "foo" % "1.0.0" ) However, in cert...
Surcease asked 4/12, 2013 at 3:59

2

Solved

I'm trying to bind a seq of text to a scala Form. What I have so far is the following code: val registerForm = Form[User]( mapping( "login" -> text, "password" -> text, "roles" -> seq...
Reconciliatory asked 12/10, 2013 at 10:22

3

Solved

I have a Play 2.0.4 web app that uses SecureSocial to allow users to log in through third-party providers like twitter, facebook, and gmail. At that point, I am not using my own UsernamePasswordPro...
Monde asked 20/2, 2013 at 18:39

1

Before I asked the question I had read the question Play framework java.lang.NoClassDefFoundError only in dev mode and several other posts. They didn't help me to resolve my problem. I've created ...
Azeotrope asked 6/1, 2015 at 11:43

4

Solved

I'm writing a typical Play Framework app where I want to return a JsonNode from my Controller's methods, using Jackson. This is how I'm doing it right now: public static Result foo() { MyPojoTyp...
Coiffeur asked 11/4, 2014 at 7:30

1

I have a Play project that uses a library that has recently been ported to Scala 2.11.1. I have also updated Play to Scala 2.11.1. When I try to run the project, I get: [error] Modules were reso...

© 2022 - 2024 — McMap. All rights reserved.