Your First Cup: An Introduction to the Java EE Platform

ProcedureModify the faces-config.xml File

By default, NetBeans 6.7 IDE creates a Facelets 1.2 configuration file. Modify the faces-config.xml to set the Facelets version to 2.0.

  1. Expand the firstcup module, then Configuration Files in the Projects pane.

  2. Double-click faces-config.xml.

  3. Click XML.

  4. Replace the opening <faces-config> tag with the following:

    <faces-config xmlns=""
  5. Select File->Save.