Book Image

Digital Java EE 7 Web Application Development

By : Peter Pilgrim
Book Image

Digital Java EE 7 Web Application Development

By: Peter Pilgrim

Overview of this book

Digital Java EE 7 presents you with an opportunity to master writing great enterprise web software using the Java EE 7 platform with the modern approach to digital service standards. You will first learn about the lifecycle and phases of JavaServer Faces, become completely proficient with different validation models and schemes, and then find out exactly how to apply AJAX validations and requests. Next, you will touch base with JSF in order to understand how relevant CDI scopes work. Later, you’ll discover how to add finesse and pizzazz to your digital work in order to improve the design of your e-commerce application. Finally, you will deep dive into AngularJS development in order to keep pace with other popular choices, such as Backbone and Ember JS. By the end of this thorough guide, you’ll have polished your skills on the Digital Java EE 7 platform and be able to creat exiting web application.
Table of Contents (21 chapters)
Digital Java EE 7 Web Application Development
About the Author
About the Reviewers

Chapter 8. AngularJS and Java RESTful Services


"Slow – Anything faster than 50ms is imperceptible to humans and thus can be considered 'instant'.

 --Misko Hevery, co-creator of AngularJS

For this chapter, we shall move out of the comfort zone of JSF and explore a different mode of web application. Most of you will be familiar with popular social media like Google Mail, Facebook, and Twitter and their web-user interfaces. These web applications have a special user experience and information architecture that gives the illusion of the interaction taking place on one single web page. However, behind the scenes, these applications depend on standard technologies: HTML5, CSS, and client-side JavaScript. They all use AJAX calls to communicate over HTTP to a back-end server. When the server side application sends data to the web client, only a partial part of the page is updated. In contemporary use, many digital sites take advantage of the RESTful service endpoints on the application backend....