playframework-2.0 Questions
5
Solved
So in Play 2.0 I had this:
GET /tasks/add controllers.Tasks.addTask(parentId: Option[Long] = None)
GET /tasks/:parentId/add controllers.Tasks.addTask(parentId: Option[Long])
With a controller me...
Maundy asked 20/2, 2013 at 13:23
5
Solved
I'd like my Play app to use different databases for test, local and production (production is Heroku) environments.
In application.conf I have:
db.default.driver=org.postgresql.Driver
%dev.db....
Sogdiana asked 30/4, 2012 at 23:52
3
Does the Play Framework have a Native or Recommended way of converting Play models into XML/JSON? Something similar to JAXB or Jackson.
Some people recommend the template approach but this is very...
Foretopsail asked 5/2, 2013 at 18:35
1
Solved
I am trying to incorporate google analytics graph at web app to show user statistics of their app usages. This is the local url http://192.168.100.10:9000/ i login to dashboard (web app) i have a g...
Bosanquet asked 22/7, 2016 at 12:33
5
Solved
On Play Framework's homepage they claim that "JSON is a first class citizen". I have yet to see the proof of that.
In my project I'm dealing with some pretty complex JSON structures. This is just...
Ambroseambrosi asked 17/11, 2013 at 10:1
5
Solved
So I have successfully gotten AJAX requests to work before but I have always had to use a form, and then at the end of the submit do return false so that it doesn't refresh the page.
I have also ju...
Tiphanie asked 21/6, 2012 at 6:58
7
Solved
I am developing an application with Play 2.0 and Scala that exposes some REST API. These APIs will be used by different applications, web, mobile or desktop, so the OAuth protocol (OAuth2) seems th...
Larry asked 7/7, 2012 at 9:30
5
Solved
What's the problem with this "routes" that are not found in IntelliJ IDEA 14?
Maximamaximal asked 21/11, 2014 at 14:26
1
Solved
I know scala, as a funcional language, is supposed to work differently from a common OO language, such as Java, but I'm sure there has to be a way to wrap a group of database changes in a single tr...
Belt asked 6/7, 2016 at 9:48
2
Solved
I want to convert a .conf-file directly to json so I can pass it to frontend. Is there a way to do that in scala/play? It seems to be incredibly cumbersome with the path I'm taking now:
val conf: ...
Badger asked 30/11, 2014 at 11:0
3
Solved
I am just trying to follow along with the ZenTasks tutorial (http://www.playframework.com/documentation/2.1.0/JavaGuide4) for the Play Framework. I can't seem to even get the Login page to work how...
Dupondius asked 23/5, 2013 at 3:30
8
I'm createing a Play 2.1 app, in which I have decided to use Slick for database interaction.
However I can't find documentation about how to configure/enable logging for Slick.
Anyone knows this?
Cooney asked 22/1, 2013 at 7:19
4
I am making a custom field constructor in Play 2:
@(elements : helper.FieldElements)
<div class="@if(elements.hasErrors) {error}">
<label for="@elements.id">@elements.label</label...
Mandamus asked 4/12, 2013 at 0:53
2
I have an actor which receives JsValue from a websocket in play 2.3. I also have a case class that defines a Reads converter. When I try to pattern match against the case class it always matches ag...
Wickman asked 9/8, 2014 at 22:18
2
Trying to see exactly what source files are being compiled during full & incremental builds.
As it stands I see a summary a la "X number of Scala and Y number of Java files" being compiled, wh...
Johnjohna asked 31/7, 2012 at 3:13
2
Solved
I'm relatively new to Play Framework. The current project I'm working on has tons of Promises returned by the service layer components all the way down to controllers. I wonder if that's the best p...
Drank asked 5/5, 2014 at 6:13
5
Solved
I have a Play Framework 2.0 application that I want to deploy (production) on Windows Server 2008 R2. How do I get it to run as a service?
Creole asked 25/8, 2012 at 8:38
2
Solved
I'm using the async Play WS Scala API to query a RESTful service. I wonder how I could process a List containing request URLs to be called via WSClient, but not more than one request per second (th...
Burnedout asked 16/5, 2016 at 16:54
2
Solved
I am calling a webservice like this:
WS
.url(url)
.get
.map { response => // error occurs on this line
response.status match {
case 200 => Right(response.json)
case status => Left(s...
Broider asked 19/2, 2013 at 15:56
3
I am working on a Scala + Play application utilizing websockets. I have a simple web socket defined as such:
def indexWS = WebSocket.using[String] { request =>
val out = Enumerator("Hello!")
v...
Frederickson asked 10/10, 2013 at 21:45
1
Consider the following class:
class MyClass @Inject() (ws: WSClient)(implicit executionContext: ExecutionContext)
and the code that gets this class:
app.injector.instanceOf[MyClass]
From what...
Heartbreak asked 9/5, 2016 at 15:15
3
Solved
What we do :
We run Play2 application on Cloudbees and we load a file from '/conf' directory (inside the classpath of the application).
These 2 snippets work in local and at heroku
Play.applica...
Morrismorrison asked 30/4, 2013 at 12:7
2
I have two JsValue created from case class, i.e. Book and Book detail
val bookJson = Json.tojson(Book)
val bookDetailJson = Json.tojson(BookDetail)
and the format would be:
//Book
{
id: 1,
na...
Swamper asked 11/7, 2013 at 14:58
5
I have a simple question regarding rendering JSON object from a Scala class. Why do I have to implemet deserializer ( read, write ).
I have the following case class:
case class User(firstname:St...
Garry asked 27/11, 2012 at 23:13
2
I am trying to use Play 2.5 dependency injection. I have following class which makes a call to REST api and parses the response
class Client @Inject()(ws:WSClient, baseUrl: string) {
def this(ws...
Mohican asked 18/4, 2016 at 1:21
© 2022 - 2024 — McMap. All rights reserved.