I want to format number with comma in jsf eg: when i type 100000 in the text field and when i go other field, the text field should display 100,000. I know it can be done in javascript, but I wonder know whether it can be done by jsf build in function. I try the with groupingUsed="true", but still doesn't work for me.
here is some of my jsf code:
<h:outputLabel for="testing" value="testing ID *" />
<h:inputText id="testing" required="true" label="testing" value="#{user.testing}" style="width:200px" >
<f:convertNumber groupingUsed="true" for="testing" />
</h:inputText>
edited: I wish to know how to do in jsf 1.2 and jsf 2 both version.