Fluid: inline notation with a value

What I needed was the inline notation for f:format.currency. Usually it looks like this:

<f:format.currency currencySign="€" decimalSeparator="," thousandsSeparator="." prependCurrency="false" decimals="2">{somevar}</f:format.currency>

I needed this in an attribute and therefore needed the inline notation. The solution:

{somevar -> f:format.currency(currencySign:'€',decimalSeparator:',',thousandsSeparator:'.',prependCurrency:'false', decimals:2)}

A link to the solution

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.