Font Awesome + Primefaces 5.2 Problem

UI Components for JSF
Post Reply
Deniz1975
Posts: 2
Joined: 23 Jun 2015, 13:08

23 Jun 2015, 13:39

Hello,

my web.xml is:

Code: Select all

<context-param>
	<param-name>primefaces.FONT_AWESOME</param-name>
	<param-value>true</param-value>	
</context-param>
but I don't see any FontAwesome Icons:

Code: Select all

<p:commandButton value="Edit" icon="fa fa-edit" type="button"/>

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

24 Jun 2015, 08:32

Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Milkmaid
Posts: 2
Joined: 08 Oct 2015, 17:37

08 Oct 2015, 17:41

Hi, I have very same problem. I am using primefaces 5.2 via maven. Jar is loaded corectly I can also see in sources :
<link type="text/css" rel="stylesheet" href="/javax.faces.resource/fa/font-awesome.css.jsf?ln=primefaces&v=5.2">

but instead of icons I see only squares. Do you have any idea whats wrong?

<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>

in web.xml

Milkmaid
Posts: 2
Joined: 08 Oct 2015, 17:37

17 Oct 2015, 20:13

Hi, the problem was on my side (I expected it). I have in css font-family with !important. I remove !important in css and it works fine.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

18 Oct 2015, 11:38

Thanks for the update. Glad to hear ;)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests