Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Formatting numbers (support for Swiss German locale)

843844Mar 19 2008 — edited Mar 28 2008
Hello
I have a problem with formatting my numbers in Swiss German (thousands are grouped with " ' " instead of " , ")
For example I want to format my numbers like this "###'##0.00" (123'456.45). This should be the correct format for de_CH locale. But i doesn't work with JSF 1.2.

My faces-config looks like this:
		<locale-config>
			<default-locale>de_CH</default-locale>
			<supported-locale>de_CH</supported-locale>
			<supported-locale>de</supported-locale>
		</locale-config>
and my output tag:
		<h:outputText id="dktotal" value="#{Bean.total}" >	
			<f:convertNumber type="number" locale="de_CH" pattern="###,##0.00" />
		</h:outputText>	
Has anyone a solution to this problem? Isn't there any support for numbers in Switzerland?

Thanks in advance for any suggestions.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2008
Added on Mar 19 2008
6 comments
997 views