playframework-2.0 Questions

2

How to automatically obfuscate a Play Framework web app when the play state|dist command is executed? The idea is to use Proguard to perform Java code obfuscation. There are plugins for SBT, such...
Angloindian asked 25/3, 2014 at 22:41

9

Solved

I am trying to run a java-based Play 2.0 app in IDEA, but upon compilation, I get this error: Information:Internal caches are corrupted or have outdated format, forcing project rebuild: Module ...
Piccoloist asked 6/7, 2015 at 5:10

11

Solved

Environment: Play 2.3.0/Scala 2.11.1/IntelliJ 13.1 I used Typesafe Activator 1.2.1 to create a new project with Scala 2.11.1. After the project was created, I ran gen-idea. The generated IDEA proj...
Hydria asked 3/6, 2014 at 16:5

3

Solved

How can you force the Play Framework listen on localhost only i would like that the play will listen on the localhsot:9000 and not on 0.0.0.0:9000 so it won't be accessible to external IP i tried t...
Tensity asked 4/5, 2013 at 4:48

5

Solved

I get an error downloading javax.media.jai_core:1.1.3 from maven central. The error is: download failed: javax.media#jai_core;1.1.3!jai_core.jar using play compiler.
Lavern asked 18/11, 2014 at 11:23

5

Solved

I am using Slick 1.0.0 with play framework 2.1.0. I am getting the following error when I query my Users table. The value of LOGIN_ID is null in DB. The query I am executing is: val user = { for...
Nesta asked 31/3, 2013 at 16:58

8

Solved

For example, I have this Map value in Scala: val m = Map( "name" -> "john doe", "age" -> 18, "hasChild" -> true, "childs" -> List( Map("name" -> "dorothy", "age" -> 5, "h...
Anaesthetize asked 14/1, 2015 at 16:44

3

Solved

I need some resources (text files) for my tests in a Scala Play 2.0 application. Where can I put these files? In a maven app I would put them into src/test/resources, but I cannot find anything ab...
Chuppah asked 6/10, 2012 at 19:11

3

Solved

My code in scala template: @session.get("user.id") match { case Some(_) => "xx" case _ => "yy" } <a href="">Logout</a> But the case ... be displayed directly to the generated...
Turbinal asked 17/3, 2012 at 7:45

2

Solved

I'm using Play framework to develop consumer for Instagram real-time API. But still could not perform x-hub-signature verification properly. So, how can we perform Instagram x-hub-signature verific...
Radiothorium asked 18/12, 2013 at 12:54

5

Solved

I'm using play framework in Java. I want to retrieve the entire request body sent in a POST request to the play server. How can I retrieve it?
Engineer asked 12/4, 2014 at 19:4

8

Solved

Here are the files that I use: component.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchem...
Drynurse asked 19/2, 2014 at 11:8

1

I am trying to work with play evolutions and postgress but something doen't seem to work. I have gone over the instructions in the play documentation. It seems that play doesn't want to use the d...
Lobo asked 14/10, 2017 at 9:39

5

How can I convert/save excel file to pdf? I'm using java play framework to generate some excel files and now the requirement changes to pdf. I don't want to recode everything. Is there a way to c...
Framboise asked 26/9, 2014 at 9:38

2

Solved

I am trying to download pictures from some urls. For some pictures it works fine, but for others I get 403 errors. For exemple, this one: http://blog.zenika.com/themes/Zenika/img/zenika.gif This ...
Avogadro asked 9/4, 2014 at 9:40

3

I've a table user_permissions which has 46 permission columns along with id and created_date. This table has a corresponding UserPermissions class: class UserPermission(val id: Long, val createdD...
Customs asked 9/7, 2015 at 14:37

24

Solved

How can I change the default port used by the play framework in development mode when issueing the "run" command on the play console. This is for playframework 2.0 beta. Using the http.port confi...
Blakemore asked 20/11, 2011 at 21:56

8

Solved

I'm following one of the play framework tutorials, but I'm getting compile errors whenever I try to use reverse routing. Firstly, public static Result javascriptRoutes() { response().setContentTy...
Liquidator asked 21/5, 2013 at 17:46

5

I am following the play tutorial and I am stuck at roughly 9 mins. The routes file is not getting resolved I did the same thing as shown in the tutorial but still doesn't work. package controllers...
Leibniz asked 12/4, 2014 at 10:5

4

Solved

The question is: how do I retrieve the port number that play is listening on, no matter how it was defined (configuration, command line argument, or not at all). This answer Retrieving port number...
Undersheriff asked 20/2, 2013 at 1:17

2

Is there scaffolding generator utility for Play Framework 2 for Scala like Ruby on Rails has? I found some topics about this but didn't figure out which one was most popular or even if there was th...
Jetport asked 30/9, 2013 at 4:11

3

Solved

I'm working on an angular app using play framework for my rest-services. Everything in the public folder is an angular app (stylesheets, javascripts, images and html). I want every request that is ...
Hedve asked 5/9, 2014 at 13:5

6

Solved

In play framework 1, you could use in the routes file something like this (check documentation at http://www.playframework.org/documentation/1.2.5/routes#syntax) GET /clients/? Clients.index so ...
Pratfall asked 2/11, 2012 at 3:57

5

Solved

I want to run Play Framework 2.x in debug mode in IntelliJ IDEA. I searched in the Internet and all results say that you have to use play console. Is it possible to run in debug mode in IntelliJ I...

9

Solved

How do you declare and initialize a variable to be used locally in a Play2 Scala template? I have this: @var title : String = "Home" declared at the top of the template, but it gives me this er...
Terminal asked 20/8, 2012 at 0:48

© 2022 - 2024 — McMap. All rights reserved.