I just purchased Mirage template, but I am suffering a lot to set up this theme in my project.
I just need a simple springboot integration to provide some rest services integrated to primefaces project to reutilize services and other layers in the project.
So I've tried this one:
https://github.com/joinfaces/joinfaces- ... r-example/
https://github.com/code-not-found/jsf-p ... g-security
This last one, that I could make some progress, by using this:
application.yml
Code: Select all
joinfaces:
primefaces:
theme: mirage-layout
font-awesome: true
jsf:
webapp-resources-directory: /resources
Code: Select all
<?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.codenotfound</groupId>
<artifactId>MyLife</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>mylife</name>
<description>JSF PrimeFaces Spring Security Example</description>
<url>https://codenotfound.com/jsf-primefaces-spring-security-example.html</url>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.0-RC1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<joinfaces.version>4.7.0-rc1</joinfaces.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.joinfaces</groupId>
<artifactId>joinfaces-dependencies</artifactId>
<version>${joinfaces.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.joinfaces</groupId>
<artifactId>primefaces-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.joinfaces</groupId>
<artifactId>security-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-milestones</id>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestones</id>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
So the documentation fails a lot for this integration and in this momentum in the world, everything is working with native JVM and docker to provide microservices in Kubernetes.14:06:31.994 [http-nio-8080-exec-2] ERROR o.a.c.c.C.[.[.[/].[FacesServlet] - Servlet.service() for servlet [FacesServlet] in context with path [] threw exception [Error loading CSS, cannot find "theme.css" resource of "primefaces-mirage-layout" library] with root cause
javax.faces.FacesException: Error loading CSS, cannot find "theme.css" resource of "primefaces-mirage-layout" library
at org.primefaces.renderkit.HeadRenderer.encodeCSS(HeadRenderer.java:158)
at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:102)
I could be happy if this integration could be made by Quarkus as well. I already tried with Quarkus-faces, but this Springboot project that I already mentioned is the only one I could make some progress on.
What could be incredible, is a simple project in the Github already configured to use with an empty page, not the entire showcase, because this has a lot of high coupling between libraries and this is very difficult to reuse.
So thanks in advance