Book Image

Java EE 6 Development with NetBeans 7

By : David R Heffelfinger
Book Image

Java EE 6 Development with NetBeans 7

By: David R Heffelfinger

Overview of this book

<p>NetBeans has several features that greatly simplify Java EE development, but with many features and great flexibility, Java developers can become overwhelmed by the options available in NetBeans. This book provides step-by-step recipes that show you how to take control of the environment and make use of these features to make your enterprise Java application development more efficient and productive than ever before, so that you can concentrate on the important parts of your application.<br /><br /><em>Java EE 6 Development with NetBeans 7</em> takes you through the most important parts of Java EE programming and shows you how to use the features of NetBeans that will improve your development experience with clear, careful instructions and screenshots. It will show you how to use NetBeans functionality to automate many of the tedious or repetitive tasks frequently encountered when developing enterprise Java applications, freeing you up to focus on the business logic specific parts of the application. As well as showing you time-saving tricks, keyboard shortcuts, and other productivity enhancements possible with NetBeans, it will take you through the major Java EE APIs and how to get them working in the NetBeans environment.</p> <p>While focusing on NetBeans features, you will learn about developing applications using the servlet API and JSPs, including taking advantage of JSTL and developing custom JSP tags. Developing applications that take advantage of JavaServer Faces is also covered in detail, including how to generate standard JSF applications from an existing database schema. The book also covers how to easily develop elegant JSF applications by taking advantage of the PrimeFaces JSF 2.0 component library that is bundled with NetBeans.</p>
Table of Contents (20 chapters)
Java EE 6 Development with NetBeans 7
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Identifying Performance Issues with the NetBeans Profiler
Index

Our first PrimeFaces project


To use PrimeFaces in our project, we simply need to create a Java Web application project as usual. When we pick the JavaServer Faces Framework, we need to click on the Components tab and select PrimeFaces 2.2.1 as our component suite.

When our project is created, NetBeans will add the required libraries to our project, PrimeFaces tags will autocomplete in our project's JSF pages.

When selecting PrimeFaces as our JSF component suite, NetBeans creates a sample page using PrimeFaces components when our project is created. The markup for the file looks like this:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head&gt...