Verifying Custom Objects

If your application includes custom objects, such as custom components,
converters, validators, and renderers, you can verify when the application
starts that they can be created. To do this, you set the verifyObjects flag
to true.

To set the flag using NetBeans IDE, do the following:

Expand the node of your project in the Projects pane.

Expand the Web Pages and WEB-INF nodes that are under the
project node.

Double-click web.xml.

After the web.xml file appears in the
editor pane, click General at the top of the editor pane.

Expand the Context Parameters node.

Click Add.

In the Add Context Parameter dialog:

Enter com.sun.faces.verifyObjects in the
Param Name field.

Enter true in the Param Value field.

Click OK.

To set the flag in the deployment descriptor directly, do the following:

Add a context-param element to the deployment
descriptor.

Add a param-name element inside the context-param element and give it the name com.sun.faces.verifyObjects.

Add a param-value element to the context-param element and give it the value true. The default
value is false.

Normally, this flag should be set to false during
development because it takes extra time to check the objects.