Reference: Standard JSF Converter and Validator Tags

The standard JSF converter and validator tags are provided in the JSF Core Library.

Library syntax

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

Tag syntax usage

All supported attributes are shown. Attributes in square brackets ([ ]) are not required. All accepted, predefined attribute values are separated with vertical bars ( | ); the default value is in boldface. For attributes that do not have a fixed set of accepted values, the values are shown in italics.

Converter tags

Tag Syntax
f:convertDateTime
<f:convertDateTime
  [dateStyle="default|short|medium|long|full"]
  [timeStyle="default|short|medium|long|full"]
  [pattern="pattern"]
  [type="time|date|both"]
  [locale="locale"]
  [timezone="timezone"]
/>          
f:convertNumber
<f:convertNumber
  [pattern="pattern"]
  [minIntegerDigits="min"] [maxIntegerDigits="max"]
  [minFractionDigits="min"] [maxFractionDigits="max"]
  [groupingUsed="true|false"] [integerOnly="true|false"]
  [type="number|currency|percent"] 
  [currencyCode="currencyCode"] [currencySymbol="currencySymbol"]
  [locale="locale"] 
/>          

Validator tags

Tag Syntax
f:validateDoubleRange
<f:validateDoubleRange
  [maximum="max"]
  [minimum="min"]
/>          
f:validateLength
<f:validateLength
  [maximum="max"]
  [minimum="min"]
/>          
f:validateLongRange
<f:validateLongRange
  [maximum="max"]
  [minimum="min"]
/>          

Working with Standard JSF Converters and Validators