Summary
Tag name: <mcc:convertNumber>
Converter class: org.apache.myfaces.commons.converter.TypedNumberConverter
Tag class: org.apache.myfaces.commons.converter.TypedNumberConverterTag
Facelet Tag Handler: org.apache.myfaces.commons.converter.TypedNumberConverterTagHandler
converter id: org.apache.myfaces.custom.convertNumber.TypedNumberConverter
Converter which uses either the manually set destType or the value binding to determine the
correct destination type to convert the number to
This tag creates a number formatting converter and associates it with the nearest
parent UIComponent. It uses either the manually set destType or the value
binding to determine the correct destination type to convert the number to.
Unless otherwise specified, all attributes accept static values or EL expressions.
Attributes
Name | Type | Supports EL? | Description |
---|---|---|---|
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. |
destType | Class | Yes | The java class name the value should be converted to. Default: automatically determined through valueBinding |
detailMessage | String | Yes | alternate conversion error detail message format string (use 'message' and 'detailMessage' alternatively) |
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 | Integer | Yes | The maximum number of digits in the fractional portion of the number. |
maxIntegerDigits | Integer | Yes | The maximum number of digits in the integer portion of the number. |
minFractionDigits | Integer | Yes | The minimum number of digits in the fractional portion of the number. |
minIntegerDigits | Integer | 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. |
summaryMessage | String | Yes | alternate conversion error summary message format string |
type | String | Yes | The type of formatting/parsing to be performed. Values include: number, currency, and percentage. Default: number. |