question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Font Awesome version is outdated

See original GitHub issue

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>

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:closed
  • Created 4 years ago
  • Comments:26 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
mellowarecommented, May 3, 2019

@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?

1reaction
tandraschkocommented, May 3, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's Changed | Font Awesome Docs
We've packed a lot into Version 6, but here are some key changes that ... in Version 6 will work and render as...
Read more >
Upgrade From Version 4 | Font Awesome Docs
Old Icon Name or Alias (Version 4) New Icon Name (Version 5) New Icon Prefix Unicode v... 500px 500px fab f26e address‑book‑o address‑book far f2b9 address‑card‑o...
Read more >
Upgrade to Version 6 | Font Awesome Docs
Whether you're a FA n00b or an old pro, we've worked hard to make upgrading to Version 6 as smooth and easy as...
Read more >
Upgrade from Version 4 | Font Awesome Docs
Old Icon Name or Alias (Version 4) New Icon Name (Version 6) New Icon Prefix Unicode V... 500px 500px fa‑brands f26e address‑book‑o address‑book fa‑regular f2b9 address‑card‑o...
Read more >
Versions of Font Awesome
Since 2012, Font Awesome has spanned 6 major versions and grown to make thousands of icons easy to use - wherever ... Below...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found