playframework-2.0 Questions
6
Solved
I am new to this authentication area. I searched a lot but was not able to find a way to authenticate the REST calls made to the Play server. What are the various ways and best practice?
Revivalist asked 7/4, 2015 at 12:33
4
Solved
I want to generate an url like this:
/photo?tags=tag1,tag2,tag3
routes file:
GET /photo controllers.Photos.list(tags:Array[String] ?= "")
I got this errors in play console:
No QueryStrin...
Boggs asked 2/7, 2012 at 9:38
5
Solved
I have a Play Framework app running on Heroku, using Heroku's SSL endpoint.
I would like to make all pages available via SSL only.
What's the best way to that?
So far, my best solution is to ...
Sobriquet asked 2/10, 2013 at 21:28
5
How do I replace a value in a JSON value in Play?
Code to illustrate:
def newReport() = Action(parse.json) { request =>
var json = request.body
if((json \ "customerId").as[Int] == -1){
// re...
Kaylyn asked 1/2, 2013 at 15:5
3
Solved
I'm trying to add securesocial into my Play 2.3.x project. Here is what I have in my build.sbt file.
resolvers += Resolver.sonatypeRepo("releases")
libraryDependencies += "ws.securesocial" %% "se...
Electrolyze asked 18/2, 2015 at 13:22
4
Solved
I'm using Slick with a Play Framework 2.1 and I have some troubles.
Given the following entity...
package models
import scala.slick.driver.PostgresDriver.simple._
case class Account(id: Option[...
Typewriting asked 1/12, 2012 at 16:33
4
Solved
I'm passing to a template an Event object and what I need to do is checking @event.getSeverity value. if the value is positive, I want to color a specific <div> in green. if the value i...
Brutus asked 24/10, 2012 at 19:57
3
Solved
It seems I can't find an instruction on http://www.playframework.org/ about building a module for playframework 2.
Anyone know if there are documentations for this or the steps require to build a ...
Delict asked 2/5, 2012 at 17:27
2
What is the correct way to cache the result of future in playframework. E.g.:
val userGravatar: Future[JsValue] = RemoteGravatarService.get(user.id, user.email)
object RemoveGravatarService {
de...
Kaila asked 5/1, 2016 at 13:0
4
Solved
I want to extract json as a case class within Play application. The attributes in case class are defined in camelCase and json data comes in snake_case.
case class User(userId: Long, userName: Str...
Undecided asked 13/8, 2013 at 6:19
5
I'm setting up my very first play app in a mixed build environment. My company uses maven for everything (so far) and I'm trying to get my play app to interact nicely with the rest of my artifacts....
Specter asked 25/7, 2012 at 6:19
5
Solved
I'm using the Play! framework v2.3 (Java) and I want to add some user authentication to my web app, ie username/password for each user and a registration process.
I found some information on the d...
Cynth asked 10/6, 2014 at 12:11
2
Solved
I'm using Ebean with the Play 2 Framework and got two models: a user model and a book model. The user model is connected with the book model in a OneToMany Relationship. So every user can have many...
Marcille asked 18/1, 2014 at 9:50
1
Solved
Here is some of the stack trace
io.netty.channel.ChannelException: Unable to create Channel from class class io.netty.channel.socket.nio.NioServerSocketChannel
at io.netty.channel.ReflectiveChann...
Irradiant asked 11/9, 2016 at 14:15
5
Solved
I'm trying to Play 2 application on Windows Server Server 2012 using the "stage" task, with the goal of wrapping this up in a service so the application will automatically run when the server gets ...
Pickel asked 29/1, 2014 at 11:7
3
Solved
I need to execute a piece of code 1 time everyday in playframework2.0.4 when I try to do with the class extends GlobalSettings it works. But it works for every instance requesting. I want it works ...
Footworn asked 5/2, 2013 at 11:19
1
Solved
I have a value class that accepts an Either, which I would like to generate a Play for Scala v2.5.6 JSON Format for:
import org.joda.time.{DateTime, Duration}
case class When(when: Either[DateTim...
Piston asked 8/9, 2016 at 4:36
4
Solved
WS.url("https://api.humanapi.co/v1/human"+url+"?updated_since="+updatedSince).setHeader("Authorization", "Bearer "+accessToken)
.setHeader("Accept", "application/json").get().map(
new Function<...
Cere asked 20/7, 2015 at 7:42
3
Solved
I want to examine what SQL statements are generated by Ebean to find out why certain exceptions (related to SQL syntax) are occurring in my Play 2.0 application. Is there a way to log the SQL state...
Heiskell asked 15/3, 2012 at 12:22
5
We are setting up a slightly complicated project using Play Framework 2.0.3.
We need to access several databases (pre-existing) and would like to do it using the frameworks built-in facilities (ie...
Benzoyl asked 30/8, 2012 at 16:15
4
Solved
I want get the url-param ids, but It will not work. Is here everyone who can help me?
The following code doesn't work.
Url:
http://localhost:9000/rest/alerts?ids[]=123?ids[]=456
Routes.conf
GE...
Catsup asked 18/6, 2013 at 8:42
5
I am trying to run the samples in Play 2.0 framework but when I go to run "play" or "sbt".
When I go to directory "/samples/scala/helloworld", I execute "sbt" and I obtain:
[info] Loading projec...
Rattly asked 6/12, 2012 at 6:9
4
Solved
I am trying to call a web-service(Which has self signed SSL certificate) in Play Framework
Using the following function:
public static play.libs.F.Promise<Result> webcall() {
String feedUr...
Plash asked 10/10, 2013 at 6:42
3
I'm trying to implement chunk response in webapp using PLay 2 with Akka. However, instead of load the response by chunk by chunk all the response is coming as once. Below is the code by which I'm c...
Torn asked 9/8, 2016 at 5:33
1
I try to build jar from clean project with sbt-assembly how describes in docs:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
import AssemblyKeys._
assemblySettings
mainClass in asse...
Boynton asked 25/4, 2016 at 9:31
© 2022 - 2024 — McMap. All rights reserved.