I have a custom EL function (defined in myfunctions.taglib.xml
) which returns a chunk of HTML, I want to copy it verbatim to the output,
<f:verbatim>
#{mylib:generateHtml()}
</f:verbatim>
however, the expansion of #{...} is always escaped. How to make it not be escaped?
Use <h:outputText escape="false" />
. The <f:verbatim>
serves an entirely different purpose specifically for JSP views and is dangerous on Facelets and is deprecated in JSF 2.0.
<h:outputText value="#{bean.html}" escape="false" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With