Adding/Removing JSF capabilities for an existing project

For almost any existing project, you can add JSF capabilities by right-clicking on the project name in the Package Explorer view and selecting the JBoss Tools | Add JSF Capabilities option from the contextual menu (as shown in the following screenshot). For example, try to do this for the empty test> project developed in Chapter 2:

Adding/Removing JSF capabilities for an existing project

Note

Below the Add JSF Capabilities option, you have the Remove JSF Capabilities that allows you to remove JSF capabilities from a project that has these capabilities.

After you select the Add JSF Capabilities option, you have to indicate the project name and the location of the web.xml configuration file. After that, just click the Next button.

Adding/Removing JSF capabilities for an existing project

In the last step of adding JSF capabilities, you have to indicate a set of project folders, a servlet version, a runtime, and a target server (as shown in the following screenshot). In principle, you have to make the same configurations as you have seen in the Creating a JSF Project Stub section. At the end, just click on the Finish button, and if everything was okay, then , and then ready for JSF support.

Adding/Removing JSF capabilities for an existing project