I tried everything. I was going threw all the postings here and tried every solution, but none of them worked.
I added this to my pom.xml:
<dependency>
<groupId>org.webjars</groupId>
<artifactId>font-awesome</artifactId>
<version>5.7.1</version>
</dependency>
I added this to my web.xml:
<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>
<mime-mapping>
<extension>eot</extension>
<mime-type>application/vnd.ms-fontobject</mime-type>
</mime-mapping>
<mime-mapping>
<extension>otf</extension>
<mime-type>font/opentype</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ttf</extension>
<mime-type>application/x-font-ttf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>woff</extension>
<mime-type>application/x-font-woff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>svg</extension>
<mime-type>image/svg+xml</mime-type>
</mime-mapping>
I tried it with param-value off and with param-value on. Not helping.
My xhtml:
<h:outputStylesheet library="webjars" name="font-awesome/5.7.1/css/font-awesome-jsf.css" />
I don't know if it's important where to place it. I copied it from somewhere with <head>
and then the font just got fat, but the icon still not shown. Without head there is just no icon.
Here is where I try to use it in the ContextMenu:
<p:menuitem value="Editieren" update="table" icon="fa fa-edit" action="#{telefonbuchList.action}"/>