JBoss.orgCommunity Documentation

Chapter 8. JSF Project Verification

In this chapter we'll discuss a possible verification that you can take advantage of.

Many different rules are checked for a JSF project that can be configured by selecting WindowPreferences from the menu bar, selecting JBoss ToolsWebJSFValidation.

JSF Rules

Figure 8.1. JSF Rules


Suppose you are working in the Source viewer for a JSF configuration file as shown below:

Faces-config.xml File

Figure 8.2. Faces-config.xml File


While typing a class name, you might make a minor typo (like "demo.Person9" instead of "demo.Person" ). After saving the file, verification checks to make sure everything is correct and finds the error below:

Error in Source View

Figure 8.3. Error in Source View


Notice that the Package Explorer View shows a marked folder and a marked file where the error is.

You can place the cursor over the line with an error message and get a detailed error message:

Error Message

Figure 8.4. Error Message


Verification also checks navigation rules:

Checking Navigation Rules

Figure 8.5. Checking Navigation Rules


If you provide a page name that does not exist, verification will let you know about that:

Page Name Verification

Figure 8.6. Page Name Verification


In summary, this document highlights all the JSF-specific features of JBoss Tools meant for enhancing the development of rich Web applications based on JSF technology. The reference introduces you to wizards for creating and importing JSF projects, JSF Configuration File editor features, functionality for enabling JSF capabilities and etc.