All Questions

183
votes
20answers
114534 views

How do I change the default port (9000) that Play uses when I execute the "run" command?

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 configur...
44
votes
3answers
17543 views

Play 2.4: Form: could not find implicit value for parameter messages: play.api.i18n.Messages

I am new to Play framework and tried to mimic the helloworld sample in my local machine but I encountered an error: routes: # Home page GET / controllers.Application.inde...
236
votes
4answers
78980 views

Understanding implicit in Scala

I was making my way through the Scala playframework tutorial and I came across this snippet of code which had me puzzled: def newTask = Action { implicit request => taskForm.bindFromRequest.fold(...
115
votes
6answers
67375 views

RESTful on Play! framework

We are planning a project primarily serving content to mobile apps, but need to have a website. My question is whether is makes sense to use Jersey or Restlet to develop REST APIs for our mobile apps...
85
votes
10answers
70801 views

Steps needed to use MySQL database with Play framework 2.0

I'm new to Play framework. I'm trying to configure MySQL database as a datasource to be used with Play Ebeans. Could you some one please explain the steps that are needed to configure MySQL with Pla...
45
votes
7answers
32167 views

Declare variable in a Play2 scala template

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 error...
10
votes
3answers
31556 views

How to use @Where in Hibernate

Searched for a few hours, but I'm stuck in a my learning curve for PlayFramework with JPA. I'm building a sample website where posts can be made. But these posts can have the states: PostDraft (post...
18
votes
5answers
12912 views

How do I run a Play Framework 2.0 application as a Windows service?

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?
43
votes
5answers
19148 views

Adding Play JSON Library to sbt

How can I add the Play JSON library (play.api.libs.json) to my sbt project? When I added the following to my plugins.sbt file: addSbtPlugin("play" % "sbt-plugin" % "2.1.0") I faced this error: [w...
34
votes
4answers
58296 views

jQuery JSON response always triggers a ParseError

I am trying to preform some basic operations with jQuery and JSON. Presently having difficulty with jQuery accepting JSON response from my play framework application. Below is a simplified version of...

Previous Next