Replace profile image with a font awesome icon.

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
mpsuser
Posts: 5
Joined: 07 Dec 2015, 16:37

08 Dec 2016, 18:01

I would like to replace the profile-image.png with a font awsome icon.

Any suggestion how I can do this?

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

09 Dec 2016, 09:38

Please try;

Code: Select all

<div class="profile-image">
     <i class="fa fa-home fa-3x"></i> /* instead of <p:graphicImage
</div>

mpsuser
Posts: 5
Joined: 07 Dec 2015, 16:37

09 Dec 2016, 10:19

I tried that but the icon is not visible.

mpsuser
Posts: 5
Joined: 07 Dec 2015, 16:37

09 Dec 2016, 11:45

My mistake. I tried to use a font awsome icon from version 4.7. As this version is not included in Primefaces 6.0 nothing was shown. When I used a icon that is included everything worked.

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

09 Dec 2016, 12:27

Please check the following context-param in your web.xml;

Code: Select all

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

Post Reply

Return to “Atlantis - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest