My code:
<af:inputText id="it1" label="Test">
<af:convertNumber groupingUsed="true" type="number" messageDetailConvertNumber="#,###,##" maxFractionDigits="2"/>
</af:inputText>
When I type 100,51 -- everything is fine, but if I would type 100,50, then '0' will be removed and entered value will be 100,5. How can I leave this '0' in the end?
I need <af:convertNumber> element for other stuff and I need this '0' to be present. Any thoughts?
BR,
Raimonds
You are using the property
maxFractionDigits="2", useminFractionDigits="2"for this:Take a look at the JSF Converters Documentation for further information about it.