Book Image

Java EE 7 Development with NetBeans 8

By : David R Heffelfinger
5 (1)
Book Image

Java EE 7 Development with NetBeans 8

5 (1)
By: David R Heffelfinger

Overview of this book

Table of Contents (18 chapters)
Java EE 7 Development with NetBeans 8
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Developing our first JSF application


From an application developer's point of view, a JSF application consists of a series of XHTML pages that contain custom JSF tags, one or more CDI named beans, and an optional configuration file named faces-config.xml.

Note

The faces-config.xml file was required in JSF 1.x; however, in JSF 2.0, some conventions were introduced to reduce the need for configuration. Additionally, a number of JSF configurations can be specified using annotations, reducing and, in some cases, eliminating the need for this XML configuration file.

Previous versions of JSF required JSF managed beans to implement server-side functionalities. For backward compatibility, JSF managed beans are still supported; however, CDI named beans are preferred in modern JSF applications.

Creating a new JSF project

To create a new JSF project, we need to go to File | New Project, select the Java Web project category, and select Web Application as the project type.

After clicking on Next, we need to...