Font Awesome version is outdated
Posted: 06 Apr 2021, 07:10
In 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>
more information click here
<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>
more information click here