Name
<f:convertNumber>
Synopsis
This action creates an instance of the
converter registered with the ID
javax.faces.Number
, configures it based on the
action attributes and associates the converter instance with the
component represented by the closest JSF component parent action
element.
Syntax
<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
"] />
Attributes
Attribute name |
Java type |
EL expression type |
Description |
currencyCode |
String |
Any |
An ISO-4217 currency code. |
currencySymbol |
String |
Any |
A Java string to use as the currency symbol. |
groupingUsed |
boolean |
Any |
Set to |
integerOnly |
boolean |
Any |
Set to |
locale |
String or java.util.Locale
|
Any |
A locale to be used instead of the default. |
maxFraction Digits |
int |
Any |
The maximum number of digits in the fractional portion. |
maxInteger Digits |
int |
Any |
The maximum number of digits in the integer portion. |
minFraction Digits |
int |
Any |
The minimum number of digits in the fractional portion. |
minInteger Digits |
int |
Any |
The minimum number of digits in the integer portion. |
pattern |
String |
Any |
A custom pattern in the form accepted by
|
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.