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>
Code: Select all
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>avalon-#{guestPreferences.theme}</param-value>
</context-param>
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