Format value p:slider jsf

Asked

Viewed 83 times

0

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

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" />

Browser other questions tagged

You are not signed in. Login or sign up in order to post.