Home » Tag Archives: Play Framework (page 3)

Tag Archives: Play Framework

Play Framework posted values revisited

Working with posted values with Play Framework 2.0, without defining a form mapping, might not be so obvious as it was with Play 1.x, that’s why I’m writing this quick cheatsheet. For this quick sample, let’s define the following view: app/views/index.scala.html @(message: String) message: @message <br /> <h2>Scala form</h2> <form action="@routes.ScalaPoster.save()" method="POST"> scala name: <input name="scala_name"> <br /> scala surname: ...

Read More »

Web development frameworks – part 2 : Play Framework 2.0

As the first candidate of our evaluation series we reviewed the Play Framework v2.0. The tutorial and reference documentation used for this article is all available from the Play documentation site. The first part of the article will go over the set of tasks we proposed to do with each framework, then moving on to evaluate each criteria item. Install ...

Read More »

Proof of Concept: Play! Framework

We are starting a new project and we have to choose the web framework. Our default choice is grails, because the team already has experience with it, but I decided to give Play! and Scala a chance. Play! has a lot of cool things for which it received many pluses in my evaluation, but in the end we decided to ...

Read More »

Play 2 – modules, plugins, what’s the difference?

There seems to be some confusion regarding Play 2 modules and plugins. I imagine this is because the two are often synonymous. In Play (both versions – 1 and 2) there are distinct differences. In this post, I’m going to look at what a plugin is, how to implement one in Java and Scala, and how to import plugins from ...

Read More »

Troubleshooting Play Framework 2 apps on Openshift

Troubleshooting Openshift   With the do-it-yourself application type you really get a lot of freedom to support almost any framework or server that can be built and run on a linux box. But you do have to make your homework, and do some research.  So in this article I’ll show you a couple of tips I learnt playing around with ...

Read More »

Publishing Play 2 modules on github

Now you’ve doubtless followed my earlier guides on writing modules for Play 2, I imagine you’re keen to show your coding chops to the world. The problem is – and this is quite a big one, I’m afraid – there is no place to publish your modules to. When I first starting writing Play modules, the repository was already set-up ...

Read More »

Deploy Play Framework 2 apps to Openshift with Java AND Scala

A couple of weeks, Mark Atwood, Jorge Aliss, and me, Sebastián Scarano participated in Red Hat’s webinar LET’S PLAY! IN THE CLOUD: DEVELOPING JAVA WEB APPS ON OPENSHIFT In the webinar Mark gave a neat introduction to Openshift, Red Hat’s free Platform as a Service: Then we developed a basic contact manager web application, combining Java and Scala source code ...

Read More »

Binary websockets with Play 2.0 and Scala

In a recent article I showed how you can use webrtc, canvas and websockets together to create a face detection application whose frontend runs completely in the browser, without the need for plugins. In that article I used a Jetty based backend to handle the image analysis using OpenCV through the JavaCV wrapper. When I almost finished the article, I ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns