Book Image

Learning Play! Framework 2

By : Andy Petrella
Book Image

Learning Play! Framework 2

By: Andy Petrella

Overview of this book

<p>The Learning Play! Framework 2 has been created for web developers that are building web applications. The core idea is to focus on the HTTP features and to enable them through a simplification lens. Building a web application no longer requires a configuration phase, an environment setup, or a long development lifecycle - it's integrated!<br /><br />Learning Play! Framework 2 will enable any web developers to create amazing web applications taking advantage of the coolest features. It's the fastest way to dive into Play!, focusing on the capabilities by using them in a sample application. Although essentially Java based code, a Scala version is presented as well – giving an opportunity to see some Scala in action.<br /><br />After setting up the machine and learning some Scala, you will construct an application which builds from static to dynamic, before introducing a database. <br /><br />Then we'll focus on how data can be consumed and rendered in several ways. This will enable some real time communication through WebSocket and Server-Sent Event – on both server and client sides.</p> <p>The book will end with testing and deployment, which completes any web development project.</p>
Table of Contents (20 chapters)
Learning Play! Framework 2
Credits
About the Author
Acknowledgement
About the Reviewers
www.packtpub.com
Preface
Materials
Index

Summary


At the end of this chapter, we are now able to create HTML forms that are based on server-side structures. We learned which forms will be used to send data to the server, and where they'll be automatically mapped to on the domain model definition.

We also learned how to manage the domain model into a database and how to create, fetch, or update them.

With these forms and a database, we can now easily create a discussion between the server and the client using forms on both side and persistence layers to save the work.

In the next chapter, however, we'll add another dimension to our model, which is the format of the data and their representations. Until now, we've only dealt with HTML or textual data. Now it's time to see how data could be represented in a different fashion or how to use binary data.