Name
<f:converter>
Synopsis
This action creates an instance of
the
class registered with the specified converter ID, which must
implement the javax.faces.convert.Converter
interface, and associates it with the component represented by the
closest JSF component parent action element.
For an alternative, see the converter
attribute
for HTML library actions that represents JSF components with a
value
property.
Syntax
<f:converter converterId="converterId
" />
Attributes
Attribute name |
Java type |
EL expression type |
Description |
converterId |
String |
Any |
The ID used to register a class implementing the
|
Example
<h:form>
<h:inputText value="#{user.ssn}">
<f:converter converterId="ssnConverter" />
</h:inputText>
</h:form>
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.