Depending on the operating system $LANG value, the display of a number is different in a JSF page. For example, with the code :
<h:outputText value="#{myController.myNumberValue}" />
With the $LANG = en_US.ISO-8859-1, I have "623, 451". With the $LANG = fr_FR.UTF-8, I have "623 451".
My question is how my application can be independent from the operation system configuration?
I tried the following configuration in faces-config.xml but it doesn't work :
<locale-config>
<default-locale>en</default-locale>
</locale-config>
I also tried to encapsulate h:outputText tag within the following tag, but it doesn't work too :
<f:view locale="en">
<h:outputText value="#{myController.myNumberValue}" />
</f:view>
Any idea to resolve my problem?
Thanks in advance.