Hello,
I have some problems with adding Apollo theme to our application. I'll try to describe what I did:
I would like to ask about the best way to add Apollo to the maven project. For now I did those steps:
1. Added dependency to my pom.xml:
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>apollo-theme</artifactId>
<version>2.0.0</version>
</dependency>
2. Added apollo-theme-2.0.0.jar to maven m2 directory (to ~/.m2/repository/org/primefaces/themes/apollo-theme/2.0.0 path)
3. Copied whole apollo-layout directory to my project (in downloaded apollo-layout.zip it is placed under apollo-layout-2.0.0.zip/resources/apollo-layout)
4. I changed my templates according to template.xhtml file
5. At this point my website started to look similar to Apollo but there are some problems.
For example line
<h:outputStylesheet name="css/layout-#{guestPreferences.theme}.css" library="apollo-layout" />
from template.xhtml file doesn't work, but it works fine after changing it to:
<h:outputStylesheet name="css/layout-blue-dark.css" library="apollo-layout" />
So I guess Apollo java files are not attached to my project - at least not all of them.
I decided to uncompress jar file from apollo downloaded zip (which I used in step no. 2) and I found out that there are only three .class files: ApolloMenu.class, ApolloMenuRenderer.class and ApolloMenu$PropertyKeys.class.
I found .java files in apollo-layout-2.0.0.zip/sources directory and there are ApolloMenu.java and ApolloMenuRenderer.java files but also other files like mentioned GuestPreferences.java
I'm little confused.
I thought it's sufficient to use .jar file included in archive downloaded from PF store, but there are missing classes... Should I prepare my own .jar with files from apollo-layout-2.0.0.zip/sources?
Also, I thought it won't be neccessary to copy all css, js and img files from Apollo to my app (like described in point no. 3)
Or maybe I was doing it all in a wrong way?
Is there any good and detailed step-by-step tutorial how to attach Apollo to working application?
Starting work with Apollo - missing classes?
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I think these links can help to you;
https://www.dropbox.com/s/gat9a4ym373mi ... t.mp4?dl=0
https://www.dropbox.com/s/s9cle2xqbwbu8 ... t.mp4?dl=0
https://www.dropbox.com/s/2p74g63wldbov ... t.mp4?dl=0
https://www.dropbox.com/s/gat9a4ym373mi ... t.mp4?dl=0
https://www.dropbox.com/s/s9cle2xqbwbu8 ... t.mp4?dl=0
https://www.dropbox.com/s/2p74g63wldbov ... t.mp4?dl=0
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests