PrimeFaces 7.0 and premium themes support of FontAwesome

UI Components for JSF
Post Reply
erickdeoliveiraleal
Posts: 62
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: 3545
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.
Always Bet On Prime (+ Extensions)!

Thomas Andraschko
PrimeFaces Developer | PrimeFaces Extensions Founder
Apache OpenWebBeans PMC | Apache DeltaSpike PMC | Apache MyFaces PMC

Personal Blog: http://tandraschko.blogspot.de/

erickdeoliveiraleal
Posts: 62
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: 3545
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.
Always Bet On Prime (+ Extensions)!

Thomas Andraschko
PrimeFaces Developer | PrimeFaces Extensions Founder
Apache OpenWebBeans PMC | Apache DeltaSpike PMC | Apache MyFaces PMC

Personal Blog: http://tandraschko.blogspot.de/

User avatar
Melloware
Posts: 961
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 Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 6.2.10 / PF Extensions 6.2.9

erickdeoliveiraleal
Posts: 62
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 15 guests