The value of a converter
attribute can be a String or a
value binding expression.
converter
value is a string, it indicates the ID
of a converter. Use to register on a component a standard converter
that does not have a supplied tag, or use to register a custom
converter. In either case, supply the converter's ID or a fully
qualified class name, which must have been registered in the
application's configuration file (faces-config.xml
).
converter
value is a value binding expression,
it indicates an object of the javax.faces.convert.Converter
interface. Use to register a custom converter on a component.
If you use the converter
attribute with a value binding
expression that yields an object of the Converter
interface
(see code sample below), then you can access the converter in a page
without defining it in a configuration file.
<h:outputText ... converter="#{someBean.someProperty}"/>
where someProperty
is of type Converter
About Standard JSF Converters
About Custom JSF Converters
Registering a Custom Converter Using a Value Binding Expression
Registering a Standard Converter That Does Not Have a Supplied Tag
Registering a Custom Converter on a Component
Copyright © 1997, 2004, Oracle. All rights reserved.