Is there a step-by-step guide to install avalon 3 theme?

Post Reply
informatica.soib
Posts: 10
Joined: 28 Aug 2019, 10:09

05 May 2021, 23:15

I tried to install from scratch avalon-3.0.0 in my project but I had some problems I am not able to fix.

1. I added primefaces dependencies to pom.xml in my project (before i install avalon theme in local mvn repository).

Code: Select all

       <dependency>
            <groupId>org.primefaces</groupId>
            <artifactId>primefaces</artifactId>
            <version>10.0.0</version>
        </dependency>
        <dependency>
            <groupId>org.primefaces.themes</groupId>
            <artifactId>avalon</artifactId>
            <version>3.0.0</version>
        </dependency>
2. Added context-param to web.xml

Code: Select all

    <context-param>
        <param-name>primefaces.THEME</param-name>
        <param-value>avalon-#{guestPreferences.theme}</param-value>
    </context-param>
3. Copied GuestPreferences.java
4. Copied xhtml files

PROBLEMS I found
- template.xhtml has a reference to <h:outputStylesheet name="css/demo.css" library="demo" />
- menu.xhtml have references in menu to /dashboard and others don't appear in layout-avalon
- other xhtml have references to dashboard as well...
- dashboard.xhtml(copied form /tag folder) throws javax.servlet.ServletException...Caused by: java.lang.NullPointerException

QUESTIONS
Am I missing some step on theme installation?
Should I add demo to my project to use some examples like dashboard? Widgets appears without styles..


Avalon layout folder from avalon-3.0.0-zip theme

avalon-layout-3.0.0 (tree depth level 3)
.
access.xhtml
empty.xhtml
error.xhtml
help.xhtml
invoice.xhtml
landing.html
login.xhtml
l.txt
notfound.xhtml
resources
- avalon-layout
sass
- _fonts.scss
- layout
- overrides
- theme
- variables
WEB-INF
- config.xhtml
- footer.xhtml
- menu.xhtml
- template.xhtml
- topbar.xhtml
wizard.xhtml
  

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

06 May 2021, 08:35

We will make a new video about it. But, these videos can help you to integrate it 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

Best Regards,

Post Reply

Return to “Avalon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests