I have a parametrized helper function in my controller, which formats text according to requirements.
public static string getFormatMe(string a) {
// do manipulation here
return a;
}
How do I call this from Visualforce, to format my data?
This does not work:
<apex:outputText value="{!formatMe('test')}" />
Save error: Unknown function formatMe. Check spelling.
Here is a solution to a similar question, but that is for calling a function without parameters: How can I call a method from visualforce?