You need to sign in to do that
Don't have an account?

replace dot with comma in visualforce page
hello all,
i am working on a visualforce page and i want to replace the dot in decimal with comma can and one help me please .
<apex:column headerValue="Preço de lista">
<apex:outputText value="{!oliWrapper.price}" id="unitPrice"/>
</apex:column>
Thanks in Advance
i am working on a visualforce page and i want to replace the dot in decimal with comma can and one help me please .
<apex:column headerValue="Preço de lista">
<apex:outputText value="{!oliWrapper.price}" id="unitPrice"/>
</apex:column>
Thanks in Advance
<apex:column headerValue="Preço de lista">
<apex:outputText value="{0, number, ##0,00}" id="unitPrice">
<apex:param value="{!oliWrapper.price}"/>
</apex:outputText>
</apex:column>
i used the code you gave comma is replaced but this is a problem .
the values which is there in the reocrd is 2358.33 and i want it to be shown like 2358,33
what i mean is in a currency you have 2358 is a values and 33 is a decimal value . i just want to should comma insted of dot for a decimal
Thanks
Did you get your requirement?
Can you help me too?
I have to replace . With , in from the decimal / currency value within visualforce page using output text without output field.
<apex:outputPanel rendered="{!localeValue != 'Eng'}">
<apex:outputText value="{!countryCurrencySymbol} {!SUBSTITUTE(TEXT(additionalCost.Actual_Price_without_Discount__c),'.',',')}" rendered="{!NOT(ISNULL(additionalCost.Actual_Price_without_Discount__c))}"/>
</apex:outputPanel>
This is my code. Replacement took plae nicely. But the terminating zeroes will not display.
Value in db = 12.30
Value displayed = 12,3
value required = 12,30
Value in db = 12.34000
Value displayed = 12,34
value required = 12,34000
What change i should make?