The Java EE 6 Tutorial, Volume I

ProcedureTo Create the Example Facelets Application with NetBeans IDE

To create the example Facelets project, use the following procedure.

  1. In NetBeans IDE, from the File menu, choose New Project.

    The New Project wizard opens.

  2. In the wizard, select Java Web as the category and Web Application as the project type and click Next.

    The New Web Application wizard opens.

  3. In the Project Name field, type guessNumber, and click Next.

  4. In the Server and Settings page, select Server as GlassFish v3 from the Server menu, select Java EE version as Java EE 6 Web from the Java EE version menu, and then click Next.

  5. In the Frameworks page, select the JavaServer Faces checkbox and click Finish.

    A new Project is created and is available in the Projects window. A default file, index.xhtml, is created and opened in the Editor.