PrimeFaces 7.0 and premium themes support of FontAwesome

UI Components for JSF
Post Reply
erickdeoliveiraleal
Posts: 79
Joined: 25 Mar 2013, 13:00

12 Mar 2019, 17:24

Primefaces 7.0 adds FontAwesome 5 support.
Premium themes support fontawesome 4 icons in its menu, it will extend support to the new tags (fas,far, fal, fab) in new release?

Part of OmegaMenuRenderer

Code: Select all

protected void encodeItemIcon(FacesContext context, String icon) throws IOException {
        if(icon != null) {
            ResponseWriter writer = context.getResponseWriter();

            writer.startElement("i", null);
            if(icon.contains("fa ")) 
                icon += " fa-fw";

            writer.writeAttribute("class", icon, null);
            writer.endElement("i");
        }
    }

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

12 Mar 2019, 17:32

PrimeFaces 7.0 is still FA 4.x. We just added support to also use 5.x (some styles for fab, ... instead only fa)
We upgraded it temp. but it was reverted by PrimeTek.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

erickdeoliveiraleal
Posts: 79
Joined: 25 Mar 2013, 13:00

12 Mar 2019, 17:36

tandraschko wrote:
12 Mar 2019, 17:32
PrimeFaces 7.0 is still FA 4.x. We just added support to also use 5.x (some styles for fab, ... instead only fa)
We upgraded it temp. but it was reverted by PrimeTek.
Yes, but maybe it would a nice addition, since it is supported, it could be supported in premium layouts too.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

12 Mar 2019, 17:39

You can easily do it by manually adding fa 5.x to your application and switch from fa to fab e.g.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

12 Mar 2019, 20:27

Se also this thread where I asked how to do it for the Babylon Premium Theme. Aragorn gave instructions on how to do it.

viewtopic.php?f=98&t=57813
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

erickdeoliveiraleal
Posts: 79
Joined: 25 Mar 2013, 13:00

15 Mar 2019, 01:59

Melloware wrote:
12 Mar 2019, 20:27
Se also this thread where I asked how to do it for the Babylon Premium Theme. Aragorn gave instructions on how to do it.

viewtopic.php?f=98&t=57813
oh ok, thank you

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests