Font Awesome version is outdated
See original GitHub issueIn Primefaces 7.0.1 when i set the web.xml configuration to:
<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>
Only the old fontawesome version 4.7.0 will be used which is using elements which are no longer available/supported in the latest version which is currently 5.8.1. Also the tag’s are no longer equal because they have been changed: Instead of “fa fa-trademark” you have now write “fas fa-trademark” …
I am always using the latest version of font-awesome by redirecting it to the latest by using omnifaces CDN Resource Handler:
<context-param>
<param-name>org.omnifaces.CDN_RESOURCE_HANDLER_URLS</param-name>
<param-value>
primefaces:fa/font-awesome.css=https://use.fontawesome.com/releases/v5.8.1/css/all.css
</param-value>
</context-param>
You can see this in the current Primefaces ShowCase . So please Update this old version from 2017 to the latest because they have much more free icons with a lot of new features. Please then also update to use these font instead of using png-sprites because when a user is zooming in he will get ugly artifacts if only a png is used…
Issue Analytics
- State:
- Created 4 years ago
- Comments:26 (19 by maintainers)
@ssibitz What happens if you use your OmniFaces trick to load 5.8.1 and just include these shims in your page? Does it then work?
@tandraschko I personally love FontAwesome and would like to upgrade to 5.8.1 maybe we could convince PrimeTek by doing a PR which includes these shims so its a seamless drop in? Do you think I should try and we can get @mertsincan to review?
you can ask him i’m a fan of the webjar, everyone can include his version he would like to use 😉 for me it was not a good way to include it directly in PF.