scarecrow scarecrow - 3 months ago 22
Java Question

How do we change the default currency on freemarker if we have the desired currencycode in string?

How do I change the default currency in the currency format of a number in freemarker? I only have the three digit currency code in string format.

Answer

Perhaps don't use the ?string.currency -format at all and do the formatting yourself?

For example...

${user.locale.currencySign} ${price.forLocale(user.locale)} 

..

Comments