I have an input textfield (p:inputText) containing a price value with two fraction digits (e.g. 1,23 in Germany or 1.23 for US). The formatting of the number can easily be done using the f:convertNumber - tag
Code: Select all
<p:inputText value="#{bean.price}">
<f:convertNumber groupingUsed="#{false}" maxFractionDigits="2" minFractionDigits="2" />
</p:inputText>
Thx,
Jens