Is it possible to include HTML code in a string of a JSF resource?

I am using the property defined in the resource package properties file in the h:outputText on my JSF page. Is it possible to include HTML in the line of the properties file so that I can display the image on the page? The reason I cannot do this directly on the page is because it should be a custom option for the workgroup.

+6
html properties jsf resourcebundle
source share
1 answer

Yes, just set escape="false" to <h:outputText> so that the value is not HTML escaped.

 <h:outputText value="#{bundle['some.key']}" escape="false" /> 
+9
source share

All Articles