I'm trying to use a function to format the text of the outputText:
<h:outputText value="#{util.text.FormatText.formatCNPJ_CPF(c.CNPJ_CPF)}"/>
<h:outputText value="#{util.text.FormatText.formatCNPJ_CPF(c.CNPJ_CPF)}"/>
But I'm having the following error:
javax.servlet.ServletException: Invalid _expression_: '${util.text.FormatText.formatCNPJ_CPF(c.CNPJ_CPF)}'
Could someone help me?