How to use Font Awesome from webjars.org with JSF

The JSF mapping and library name is missing in those URLs. If you’ve mapped your FacesServlet on *.xhtml, then those URLs should actually have been: GET http://DOMAIN:PORT/CONTEXT-ROOT/javax.faces.resource/font-awesome/3.2.1/font/fontawesome-webfont.woff.xhtml?ln=webjars&v=3.2.1 GET http://DOMAIN:PORT/CONTEXT-ROOT/javax.faces.resource/font-awesome/3.2.1/font/fontawesome-webfont.ttf.xhtml?ln=webjars&v=3.2.1 GET http://DOMAIN:PORT/CONTEXT-ROOT/javax.faces.resource/font-awesome/3.2.1/font/fontawesome-webfont.svg.xhtml?ln=webjars Essentially, you should be using #{resource} in CSS file to print the proper JSF resource URL: src: url(“#{resource[‘webjars:font-awesome/3.2.1/font/fontawesome-webfont.eot’]}&v=3.2.1”); src: url(“#{resource[‘webjars:font-awesome/3.2.1/font/fontawesome-webfont.eot’]}&#iefix&v=3.2.1”); However, as the source … Read more