Page 1 of 1

p:spinner fractional digits seperator

Posted: 01 Dec 2010, 06:22
by pingu
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".

Re: p:spinner fractional digits seperator

Posted: 19 May 2016, 13:12
by StevenHachel
Hello World? :-)
When can I expect with this feature?

best regards
Steven

Re: p:spinner fractional digits seperator

Posted: 09 May 2019, 08:41
by marcel.pokrandt
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.