This converter won't output the percent or currency symbols, that's up to the UI. This converter will implicitly infer percent or currency symbols on submitted value when absent, just to prevent an unnecessary conversion error.
This converter is available by converter ID omnifaces.ImplicitNumberConverter. Just specify it as <o:converter> nested in the
component referring the Number property. For example:
<span class="currency">
<span class="symbol">$</span>
<h:inputText value="#{bean.price}">
<o:converter converterId="omnifaces.ImplicitNumberConverter" type="currency" currencySymbol="$" />
</h:inputText>
</span>
Since OmniFaces 4.5 it's also available by <o:implicitNumberConverter> tag.
<span class="currency">
<span class="symbol">$</span>
<h:inputText value="#{bean.price}">
<o:implicitNumberConverter type="currency" currencySymbol="$" />
</h:inputText>
</span>
| Info | Value |
|---|---|
| Converter ID | omnifaces.ImplicitNumberConverter |
| Handler Class | None |
| Description | None |
| Name | Required | Type | Description |
|---|---|---|---|
currencyCode | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| No Description |
currencySymbol | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| No Description |
groupingUsed | false | jakarta.el.ValueExpression
(must evaluate to boolean)
| No Description |
integerOnly | false | jakarta.el.ValueExpression
(must evaluate to boolean)
| No Description |
locale | false | jakarta.el.ValueExpression
(must evaluate to java.util.Locale)
| No Description |
maxFractionDigits | false | jakarta.el.ValueExpression
(must evaluate to int)
| No Description |
maxIntegerDigits | false | jakarta.el.ValueExpression
(must evaluate to int)
| No Description |
minFractionDigits | false | jakarta.el.ValueExpression
(must evaluate to int)
| No Description |
minIntegerDigits | false | jakarta.el.ValueExpression
(must evaluate to int)
| No Description |
pattern | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| No Description |
type | true | jakarta.el.ValueExpression
(must evaluate to java.lang.String)
| No Description |
Output generated by Vdldoc View Declaration Language Documentation Generator.