Prime faces theme

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
fayer
Posts: 1
Joined: 20 Mar 2023, 17:14

21 Mar 2023, 00:56

Hello , i just bough a primefaces theme , is it possible for me to use it in my spring mvc project? ive not found a way to change the one i have for the new one i bought maybe my pom file can be usefull? i tried to add it as a init parameter in my ServletContextInitializer but it doesent seem to work with sc.setInitParameter("primefaces.rain", "rain"); im sorry if the question is stupid but im really new to this




pom.xml

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>at.qe</groupId>
    <artifactId>skeleton</artifactId>
    <version>1.0.7</version>
    <packaging>war</packaging>

    <name>skeleton</name>
    <description>A skeleton project to be used as starting point for the course
        "Software Engineering" offered by the University of Innsbruck.

        Uses Spring framework (http://spring.io) for the backend and
        JSF (http://www.oracle.com/technetwork/java/javaee/javaserverfaces-139869.html)
        for the web frontend. PrimeFaces (http://primefaces.org) is used as
        JSF component library to prettify the frontend.

        Feel free to use this skeleton project as you see fit - but keep in
        mind that this project is primarily provided to be used for educational
        purposes. Don't use it for production.
    </description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.0.4</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <joinfaces.version>5.0.3</joinfaces.version>
        <duplicate-finder-maven-plugin.version>1.5.1</duplicate-finder-maven-plugin.version>
        <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
        <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>        
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-config</artifactId>
        </dependency>
        
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

        <dependency>
            <groupId>org.joinfaces</groupId>
            <artifactId>security-spring-boot-starter</artifactId>
            <version>${joinfaces.version}</version>
        </dependency>

        <dependency>
            <groupId>org.joinfaces</groupId>
            <artifactId>primefaces-spring-boot-starter</artifactId>
            <version>${joinfaces.version}</version>
        </dependency>
  
        <dependency>
            <groupId>org.joinfaces</groupId>
            <artifactId>omnifaces-spring-boot-starter</artifactId>
            <version>${joinfaces.version}</version>
        </dependency>

        <!-- to reduce boilerplate code -->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- special test dependencies -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>nl.jqno.equalsverifier</groupId>
            <artifactId>equalsverifier</artifactId>
            <version>3.14</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven-compiler-plugin.version}</version>
                <configuration>
                    <failOnWarning>true</failOnWarning>
                    <failOnError>true</failOnError>
                    <showDeprecation>true</showDeprecation>
                    <failOnWarning>false</failOnWarning>
                </configuration>
            </plugin>
            <!-- Enable jacoco analysis -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <forkMode>once</forkMode>
                    <argLine>
                        ${coverageAgent}
                    </argLine>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${jacoco-maven-plugin.version}</version>
                <configuration>
                    <propertyName>coverageAgent</propertyName>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

olgubasak
Posts: 98
Joined: 05 Jan 2023, 11:05

23 Mar 2023, 10:38

Hi,

We'll check and get back to you.

Regards

olgubasak
Posts: 98
Joined: 05 Jan 2023, 11:05

23 Mar 2023, 12:57

Hi again,

You can see the usage of Spring MVC with PrimeFaces by following the link I have sent below.

https://stormpath.com/blog/tutorial-spr ... primefaces

Best Regards,

SethSchmidt
Posts: 1
Joined: 30 Jan 2024, 20:40

30 Jan 2024, 20:47

olgubasak wrote:
23 Mar 2023, 12:57
Hi again,

You can see the usage of Spring MVC with PrimeFaces by following the link I have sent below.

https://stormpath.com/blog/tutorial-spr ... primefacessuika game

Best Regards,
I'll try it. Thx.

katherine561
Posts: 1
Joined: 04 Mar 2024, 13:33

04 Mar 2024, 13:41

To integrate a new PrimeFaces theme into your Spring MVC project, download the purchased theme and place its resources in the project's resources folder. Ensure that your configuration class (e.g., CatNeedsBest WebConfig) registers PrimeFaces resources and update it to include the new theme. If using web.xml, set the theme parameter. Verify PrimeFaces version compatibility, clean and rebuild the project, and restart the application server. In Spring Boot projects, refer to the documentation for specific instructions.
Last edited by katherine561 on 05 Mar 2024, 06:56, edited 2 times in total.

getbacklinks246
Posts: 4
Joined: 01 Mar 2024, 04:16

05 Mar 2024, 02:31

You must add and manually define the requirements for any other themes you wish to use. The PrimeFaces Themes Repository is where we may download the JAR files that package the PrimeFaces themes. Practicing has taught me a lot of things. Try to use PrimeFaces to develop a project. Try out several documentation samples and create your own component.
Social Media Backlinks

isabellarossi593
Posts: 1
Joined: 07 Mar 2024, 07:37

07 Mar 2024, 07:43

Add theme files to project resources and set `primefaces.theme=your_theme_name` in your `application.properties` or `application.yml` file

Post Reply

Return to “Rain - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests