Java Reference
In-Depth Information
dukesbookstore.converters.CreditCardConverter
</converter-class>
</converter>
Attributes specified in a converter tag override any settings in the @FacesCon-
verter annotation.
The converter element represents a javax.faces.convert.Converter im-
plementation and contains required converter-id and converter-class ele-
ments.
The converter-id element identifies an ID that is used by the converter attribute
of a UI component tag to apply the converter to the component's data. “ Using a Custom
Converter on page 126 includes an example of referencing the custom converter from a
component tag.
The converter-class element identifies the Converter implementation.
Creating and Using a Custom Converter on page 123 explains how to create a custom
converter.
Configuring Navigation Rules
Navigation between different pages of a JavaServer Faces application, such as choosing
the next page to be displayed after a button or hyperlink component is clicked, is defined
by a set of rules. Navigation rules can be implicit, or they can be explicitly defined in the
application configuration resource file. For more information on implicit navigation rules,
see “ Implicit Navigation Rules on page 164 .
Each navigation rule specifies how to navigate from one page to another page or set of
pages. The JavaServer Faces implementation chooses the proper navigation rule accord-
ing to which page is currently displayed.
After the proper navigation rule is selected, the choice of which page to access next from
the current page depends on two factors:
• The action method invoked when the component was clicked
• The logical outcome referenced by the component's tag or returned from the action
method
The outcome can be anything the developer chooses, but Table 7-3 lists some outcomes
commonly used in web applications.
Search WWH ::




Custom Search