All Questions
Tagged with scala playframework-2.0
2,883
questions
0
votes
1
answer
421
views
Scala play dependency issue
I am trying to update my Scala play application to the latest build and sbt versions, and I am getting the following error:
[error] * org.scala-lang.modules:scala-xml_2.12:2.1.0 (early-semver) is ...
0
votes
1
answer
76
views
Special character in key in the conf file for Internationlization in play framework
I am trying to use the Internationalization feature of the Play Framework.
It involves the creation of a new conf file for each language that we want to support. Example for french we create a ...
0
votes
0
answers
42
views
Type mismatch in recursive function using Bitbucket API and Playframework
I created a generic function to get from Bitbucket-API (It gives you the data in pages if there is to much data and the next page URL is under "next" in the response).
def ...
0
votes
1
answer
112
views
Access to dynamic Images with vue and playframework
I use vue and Play!Framework for my project.
Fronted: Vue.js 2.6.12
Backend: Play!Framework with Scala (2.12.8)
I use following Code snippet to upload an image to my server (This is copied from here: ...
3
votes
2
answers
646
views
JsLookup on multiple level array using play Json library (or any other suggestion)
My function is receiving a JsValue, now this json have lists, and this lists element could also be lists, for example:
{
"firstName": "Elon",
"lastName": "Musk&...
1
vote
0
answers
29
views
Unable to display images from local inventory in Play 2 framework using Scala
I have few images stored in local directory.
The path of the images are stored in a local database.
I am unable to display the images in front end.
Model code :
package models
case class Post(...
0
votes
1
answer
167
views
Play Framework - Respond with JSON after uploading a file (multipartFormData)
I am using this code to upload an image on server , that i get from this link play upload
def upload = Action(parse.multipartFormData) { request =>
request.body
.file("picture")...
0
votes
0
answers
62
views
Play Framework 2.8.8 with AWS Java SDK 1.12.6 (com.fasterxml.jackson.databind.JsonMappingException) [duplicate]
Started a new project via this route:
sbt new playframework/play-scala-seed.g8
as indicated on this page: https://www.playframework.com/getting-started
It runs as expected.
Now I need to add parts of ...
2
votes
0
answers
92
views
IntelliJ always runs entire ScalaTest suite 17 times
I am using the following versions.
IntelliJ 2020.2.3
SBT 1.3.7
Scala 2.11.12
Play Framework SBT plugin 2.7.3
We have a project with an app directory with sources and a test directory with 44 tests ...
0
votes
1
answer
53
views
Future not returning anything
trying to fetch result from database and returning the future resultset. But the issue is while accessing future result i am not getting any response.
below is the code snippnet:
def getAll(): ...
0
votes
0
answers
136
views
Scala Playframework 'method invokeBlock overrides nothing'
I've added keycloak authentication to my Playframework project, but it's implemented only for one Action. I'm trying to create a custom Action class which will be validating the JWT and which I'll ...
1
vote
4
answers
246
views
Retrieving a particular field inside objects in JsArray
A part of my JSON response looks like this:
"resources": [{
"password": "",
"metadata": {
"updated_at": "20190806172149Z",
"guid": "e1be511a-eb8e-1038-9547-...
0
votes
0
answers
51
views
what is the difference between using () and {} when creating Reads. I had to explicitly call apply when using {}
In the following code, if I use (), I don't need to explicitly call apply of CanBuilder
implicit val pReads:Reads[P] = (
(JsPath \ "id").readNullable[UUID] and
(JsPath \ "description").read[...
0
votes
1
answer
59
views
fail to simulate play api Request
I have a class that have that receives Option[Request[_]] as an implicit (play.api.mvc.Request):
class MyClass @Inject()(...)(implicit val request: Option[Request[_]]) { ...
my problem is in my test ...
3
votes
0
answers
34
views
Cannot load grand-child routing from child module
Play Version
[email protected]
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (Zulu 8.38.0.13-CA-linux64) (build 1.8.0_212-b04)...