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


In this chapter about JSF forms, we explored the HTML and core JSF custom tags to build the answer to one of the most sought-after questions on the Internet: how on earth do I—as a digital developer—write a CRUD application? It is surprising that this simple idea is considered difficult to program.

We built a digital JSF form that initially created a contact detail. We saw the Facelet view, the managed bean controller, the stateful session EJB, and the entity. We are modern because we took advantage of the recent HTML5 advances such as the Bootstrap CSS framework. We displayed a list collection of objects with a <h:dataTable> tag, which is a powerful and flexible component. We then added the ability to edit and remove the contact details from the application.

In the next chapter, we will look at form validation extensively and throw in a mix of an AJAX communication in JSF. We have already—sort of—looked in the territory of validation with <f:validateRequired>, <h:messages...