Your First Cup: An Introduction to the Java EE Platform

ProcedureCreating the XHTML Files

Create the Facelets XHTML files in NetBeans IDE.

  1. In the firstcup project select Web Pages in the left pane in NetBeans IDE.

  2. Select File -> New File.

  3. Select Java Server Faces under Categories, New JSF Page under File Types, and click Next.

  4. Enter greeting under File Name and click Finish.

  5. Repeat the previous steps to create a new Facelets Simple File named response.