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="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    			http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
        version="2.0">
  5. Select File->Save.