Chapter 9. JSF front-end scenario 283
Figure 9-28 Using custom e-mail validator
Once the validator is associated with inputText, the validation behaves as the
standard one would. You can associate a Display Error
JSF component adjacent
to the email field, and validation errors would be displayed in the same way
standard errors were. In fact, looking back at Figure 9-9 on page 261, you can
see that the standard validation error for last name has the same general
appearance as the custom one we applied on the e-mail address.
9.4.7 Debugging applications in Rational Software Architect
Rational Software Architect provides a comprehensive debugging facility, which
also supports JSF. Although a complete discussion of the debugging features
would be out of the scope of this chapter, we do provide an introduction of how to
perform a simple debugging task on a JSF application.
Using our customer creation example, we imagine a situation where the
customer profile was not entered correctly in the database. In this scenario, we
suspect the values entered by the user in the screen are being corrupted
somewhere before they are inserted in the database. To debug this problem, we
might want to see the values collected from the UI components, just before they
are passed in to the session facade. The following subsections present the
different steps we would take to perform that debugging task.
Starting the server in debug mode
Before we can perform debugging on the application server, we need to start it in
debugging mode. To following steps describe that process:
1. In the workspace, open the Servers view, which is generally available as a
one of the tabs in the bottom center area.
1. Right-click the server you are using. In our example, we used the WebSphere
Application Server V6 test environment that comes integrated with Rational