Format value p: slider jsf

0

Hello, I have a component p: slider that goes from $ 0 - $ 5000. The problem is that I do not know how to format the values in the Brazilian currency. Can someone help me?

    
asked by anonymous 19.09.2016 / 20:34

1 answer

0

Based on the Primefaces showcase Primefaces Showcase

    <h:outputText id="output" value="R$ #{testeView.total}" />
    <h:inputHidden id="txt2" value="#{testeView.total}" />
    <p:slider for="txt2" display="output" style="width: 200px" displayTemplate="R$ {value}" maxValue="5000" minValue="0" />
    
21.09.2016 / 20:35