To register a standard JSF converter that does not have its own tag:
javax.faces.Integer
or
javax.faces.convert.IntegerConverter
).
Note: Alternatively, you can nest a f:converter
tag within a component, and use the converterID
attribute to
refer to the converter's registered identifier.
<h:inputText id="age" converter="javax.faces.Integer" />
<h:inputText id="age" ...>
<f:converter converterID="javax.faces.Integer" />
</h:inputText>
About Standard JSF Converters
Registering a Standard Converter on a Component Using a Standard Tag
Registering a Custom Converter on a Component
Registering a Custom Converter Using a Value Binding Expression
Copyright © 1997, 2004, Oracle. All rights reserved.