Book Image

NetBeans IDE 8 Cookbook

By : David Salter, Rhawi Dantas
Book Image

NetBeans IDE 8 Cookbook

By: David Salter, Rhawi Dantas

Overview of this book

<p>From the start to the end of a Java project's lifecycle, this book will show you how to perform many key tasks with the NetBeans IDE, uncovering more about mobile, desktop, and enterprise Java along the way.</p> <p>You will start by creating Java projects and learning how to refactor and use NetBeans tools to increase developer efficiency. You will then get a walkthrough of how to create a desktop application before covering JavaFX and mobile applications and how to use external services within them. Having seen how to create many different types of applications, you will then be shown how to test and profile them before storing them in revision control systems such as Git or Subversion. Finally, you will learn how to extend NetBeans itself by adding new features to the IDE.</p>
Table of Contents (19 chapters)
NetBeans IDE 8 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a web application with JSF support


In the Creating a web application recipe, we saw how to create a basic JSP web application and introduced the concepts behind creating, deploying, and running a web application.

In this recipe, we'll take things a little further and show how to create a Java Server Faces (JSF) web application and run it on the WildFly application server. This recipe isn't intended to be a thorough tutorial on JSF, although we will go through the basics.

We'll create a JSF application that asks for our name and then welcomes us to the application. We'll see how NetBeans helps us make the development easier.

Getting ready

To complete this recipe, we need to have a running instance of the NetBeans Java EE bundle, together with a local installation of the WildFly 8 application server. We need to have the WildFly 8 plugin installed into NetBeans. See the Adding WildFly support to NetBeans recipe for further details.

How to do it…

Perform the following steps:

  1. Click on the File...