p:slider together with f:convertNumber

UI Components for JSF
Post Reply
compost
Posts: 4
Joined: 04 Apr 2011, 20:26

12 Aug 2011, 16:33

Hi,

I have an input textfield (p:inputText) containing a price value with two fraction digits (e.g. 1,23 in Germany or 1.23 for US). The formatting of the number can easily be done using the f:convertNumber - tag

Code: Select all

<p:inputText value="#{bean.price}">
            <f:convertNumber groupingUsed="#{false}" maxFractionDigits="2" minFractionDigits="2" />
</p:inputText>
But this does not work together with the p:slider component. Same thing without fractions but with grouped values like 20.000.000. Does anyone know how to get this running?

Thx,
Jens
PrimeFaces 3.4.1, Mojarra 2.1.10, Tomcat 7, Java 6, IntelliJ

rcroonenberghs
Posts: 12
Joined: 14 Jun 2010, 18:28

10 Sep 2013, 15:18

Have you found a solution yet? I'm looking for the same.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests