Primefaces do not display icons -> ui-icon-*

cesarbremer
Posts: 19
Joined: 06 Jul 2015, 22:53

19 May 2018, 17:19

I am using wildfly JSF server.
Primefaces 6.2
Serenity 1.04 version

The icons ui-icon-* are not being displayed, above a link with a datatable element in the browser screen.

https://drive.google.com/file/d/1ov50b7 ... sp=sharing

Any help?

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

19 May 2018, 23:23

Do you have Material font files in your project? Did you try our sample maven project? Is it work for you?

cesarbremer
Posts: 19
Joined: 06 Jul 2015, 22:53

20 May 2018, 00:37

When uploading the serenity-1.0.4.war file to our wildfly server, I received the following error message:

https://drive.google.com/file/d/1wOTOI4 ... sp=sharing

Our application port is working with Serenity, the awesome icons OK, but the icons ui-icon-* are not.

Relating the material design icons in our application, I could not find documentation related to this matter and i don't know to answer it.

Thank you.




serenity-1.0.4

cesarbremer
Posts: 19
Joined: 06 Jul 2015, 22:53

20 May 2018, 00:57

In our War project file we have, under the resources folder, the complete serenity-layout folder.

https://drive.google.com/file/d/1Top14p ... sp=sharing

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

21 May 2018, 08:22

Thanks a lot for the screenshots. Please remove jsf jar from the war and the mojarra listener from Web.xml.

Also see;
viewtopic.php?t=41278&p=130047
viewtopic.php?f=23&t=41516

Regards,

cesarbremer
Posts: 19
Joined: 06 Jul 2015, 22:53

21 May 2018, 14:40

Dear Aragon.

Thank you for your nice return and support.
Bellow my pom.xml and web.xml


The <listener> can be suppressed from web.xml and the problem persists

<listener>
<listener-class>
com.bremer.clinica1.MySessionListener.MySessionListener
</listener-class>
</listener>

Bellow my web.xml file.
=====================================================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee; http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

<listener>
<listener-class>
com.bremer.clinica1.MySessionListener.MySessionListener
</listener-class>
</listener>

<context-param>
<param-name>primefaces.PUBLIC_CAPTCHA_KEY</param-name>
<param-value>*****</param-value>
</context-param>
<context-param>
<param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name>
<param-value>*****</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.enableMultiThreadedStartup</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.enableThreading</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>#{loginBean.temaSerenity}</param-value>
</context-param>
<context-param>
<description>
State saving method: "client" or "server" (= default) See
JSF Specification 2.5.2
</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Production</param-value>
</context-param>
<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
<param-value>/WEB-INF/primefaces-serenity.taglib.xml</param-value>
</context-param>
<mime-mapping>
<extension>woff2</extension>
<mime-type>application/x-font-woff2</mime-type>
</mime-mapping>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>development</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>classdebuginfo</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>mappedfile</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>trimSpaces</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>usePrecompiled</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>suppressSmap</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>reload-interval></param-name>
<param-value>-1></param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>genStrAsCharArray</param-name>
<param-value>true</param-value>
</init-param> <load-on-startup>3</load-on-startup>
</servlet>

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>

<mime-mapping>
<extension>eot</extension>
<mime-type>application/vnd.ms-fontobject</mime-type>
</mime-mapping>
<mime-mapping>
<extension>otf</extension>
<mime-type>font/opentype</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ttf</extension>
<mime-type>application/x-font-ttf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>woff</extension>
<mime-type>application/x-font-woff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>svg</extension>
<mime-type>image/svg+xml</mime-type>
</mime-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>/faces/login.xhtml</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/faces/login.xhtml</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/faces/error/500.xhtml</location>
</error-page>

<error-page>
<exception-type>
javax.servlet.ServletException
</exception-type >
<location>/faces/error/ErrorHandle.xhtml</location>
</error-page>

<error-page>
<exception-type>java.io.IOException</exception-type >
<location>/faces/error/ErrorHandle.xhtml</location>
</error-page>

<error-page>
<exception-type>java.lang.ClassNotFoundException</exception-type >
<location>/faces/error/ErrorHandle.xhtml</location>
</error-page>

<error-page>
<exception-type>java.sql.SQLException</exception-type >
<location>/faces/error/ErrorHandle.xhtml</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/faces/error/ErrorHandle.xhtml</location>
</error-page>

<error-page>
<error-code>400</error-code>
<location>/faces/error/ErrorHandle.xhtml</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/faces/error/ErrorHandle.xhtml</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/faces/error/403.xhtml</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/faces/error/404.xhtml</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/faces/error/500.xhtml</location>
</error-page>

</web-app>

=====================================================================

Bellow my pom.xml file.

=====================================================================
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.bremer</groupId>
<artifactId>c1serenity</artifactId>
<version>2.0</version>
<packaging>war</packaging>

<name>c1serenity</name>

<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>JBoss repository</id>
<url>http://repository.jboss.org/nexus/conte ... blic/</url>
</repository>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org/</url>
<layout>default</layout>
</repository>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
<debug>false</debug>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>7.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.2.1.Final</version>
<configuration>
<serverConfig>standalone.xml</serverConfig>
<jvmArgs>-Djboss.socket.binding.port-offset=0</jvmArgs>
<filename>${project.build.finalName}.war</filename>

<hostname>localhost</hostname>
<port>9990</port>
<username>cesarbremer</username>
<password>v22K25*aLV</password>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>serenity</artifactId>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>javax.faces-api</artifactId>
<version>2.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.security.jacc</groupId>
<artifactId>javax.security.jacc-api</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>

<dependency>
<artifactId>javax.mail-api</artifactId>
<groupId>javax.mail</groupId>
<optional>true</optional>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>com.sendgrid</groupId>
<artifactId>sendgrid-java</artifactId>
<version>2.2.2</version>
<classifier>jar</classifier>
</dependency>
<dependency>
<groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j-light</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1-jboss</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.8.2</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- JSTL Library -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.2-1002.jdbc4</version>
</dependency>
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
<version>3.6.6</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>6.2</version>
</dependency>
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>6.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>


<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>1.29.0</version>
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-appengine</artifactId>
<version>1.23.0</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-calendar</artifactId>
<version>v3-rev124-1.20.0</version>
</dependency>

<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client-java6</artifactId>
<version>1.23.0</version>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client-jetty</artifactId>
<version>1.23.0</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-doubleclicksearch</artifactId>
<version>v2-rev105-1.22.0</version>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-gson</artifactId>
<version>1.23.0</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-sqladmin</artifactId>
<version>v1beta4-rev7-1.20.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com. ... ces-sheets -->
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-sheets</artifactId>
<version>v4-rev490-1.23.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com. ... ices-drive -->
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-drive</artifactId>
<version>v3-rev94-1.23.0</version>
</dependency>
</dependencies>
</project>

cesarbremer
Posts: 19
Joined: 06 Jul 2015, 22:53

21 May 2018, 16:58

Your demo is working in my server.

cesarbremer
Posts: 19
Joined: 06 Jul 2015, 22:53

21 May 2018, 17:27

Dear Aragon.


Your working Demo Calendar in my server.
https://drive.google.com/file/d/1XpYLt4 ... sp=sharing

My project Calendar in my server.
https://drive.google.com/file/d/1rjc2OH ... sp=sharing

Both are the same, except the language.
I tried Calendar without portuguese, the problem continues.

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

22 May 2018, 09:16

Do you have Material Font files in your project?

Also, these links can help to you to integrate the theme and layout into your project;
https://www.dropbox.com/s/gat9a4ym373mi ... t.mp4?dl=0
https://www.dropbox.com/s/2p74g63wldbov ... t.mp4?dl=0
https://www.dropbox.com/s/s9cle2xqbwbu8 ... t.mp4?dl=0

cesarbremer
Posts: 19
Joined: 06 Jul 2015, 22:53

22 May 2018, 13:19

Dear Aragon.

Thank you for your nice support.

1)- Do you have Material Font files in your project?
================
YES

2)- Also, these links can help to you to integrate the theme and layout into your project;
https://www.dropbox.com/s/gat9a4ym373mi ... t.mp4?dl=0
https://www.dropbox.com/s/2p74g63wldbov ... t.mp4?dl=0
https://www.dropbox.com/s/s9cle2xqbwbu8 ... t.mp4?dl=0
================
After following your videos I solved my problem,: I didn't create the webapp/resources/serenity-layout/css/fonts.css[ file.

As a suggestion, I think it is very important your company, after selling a product, send an email to your customer with instructions about how to install the product.
As your company doesn't do that, I wasted a lot of my time ( and yours) trying to find information about how to install your product, finally your videos instructed the correct way to do that.

Thank you for your nice support, your product is very nice, you have a good forum site to answer support questions and I wish you continue to improve your product in the future.

Best regards.
Cesar.

Post Reply

Return to “Serenity - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest