p:spinner fractional digits seperator

UI Components for JSF
Post Reply
pingu
Posts: 4
Joined: 29 Nov 2010, 03:59

01 Dec 2010, 06:22

Hi

I'm trying to use the p:spinner element for a currency value, represented as a float or double. In Germany the fractional digits are seperated by a comma (2,25) and not by a dot(2.25). The converter follows this convention. But the spinner converts the value to "dot-seperation" (2,10 E -> 210.00 E).

Code: Select all

<p:spinner styleClass="spinner_fiel" value="#{cc.attrs.value}" stepFactor="0.25" suffix=" E" >
	<f:convertNumber type="currency"/>
</p:spinner>
Is it possible to make the spinner element locale-sensitive?

To reproduce this problem you maybe have to set the local attribute in the f:converNumber to "de".
Primefaces-2.2-SNAPSHOT
JSF 2.0 reference implementation
Glassfish 3.0.1
Ubuntu

StevenHachel
Posts: 9
Joined: 09 Dec 2015, 15:57
Location: Berlin

19 May 2016, 13:12

Hello World? :-)
When can I expect with this feature?

best regards
Steven

marcel.pokrandt
Posts: 1
Joined: 02 Jul 2018, 10:10

09 May 2019, 08:41

I really need this feature too...
I think I´ll fallback to "normal" input field because using wrong decimal delimiters is a big error source.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests