To create the example Facelets project, use the following procedure.
In NetBeans IDE, from the File menu, choose New Project.
The New Project wizard opens.
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.
In the Project Name field, type guessNumber, and click Next.
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.
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.