UI-Component Sets
Project Documentation

Summary

Tag name: <f:convertNumber>
Converter class: javax.faces.convert.NumberConverter
Tag class: org.apache.myfaces.taglib.core.ConvertNumberTag
Facelet Tag Handler: org.apache.myfaces.view.facelets.tag.jsf.core.ConvertNumberHandler
converter id: javax.faces.Number
This tag creates a number formatting converter and associates it with the nearest parent UIComponent. Unless otherwise specified, all attributes accept static values or EL expressions. see Javadoc of JSF Specification

Attributes

Name Type Supports EL? Description
binding javax.faces.convert.NumberConverter Only EL A ValueExpression that evaluates to a NumberConverter.
currencyCode String Yes ISO 4217 currency code
currencySymbol String Yes The currency symbol used to format a currency value. Defaults to the currency symbol for locale.
groupingUsed boolean Yes Specifies whether output will contain grouping separators. Default: true.
integerOnly boolean Yes Specifies whether only the integer part of the input will be parsed. Default: false.
locale java.util.Locale Yes The name of the locale to be used, instead of the default as specified in the faces configuration file.
maxFractionDigits int Yes The maximum number of digits in the fractional portion of the number.
maxIntegerDigits int Yes The maximum number of digits in the integer portion of the number.
minFractionDigits int Yes The minimum number of digits in the fractional portion of the number.
minIntegerDigits int Yes The minimum number of digits in the integer portion of the number.
pattern String Yes A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat.
type String Yes The type of formatting/parsing to be performed. Values include: number, currency, and percent. Default: number.

Facelets Attributes

Name Type Required Description
for String false {@inheritDoc}