Using apollo layout pages
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.
Hi! I've recently purchased apollo and im trying to use the layout pages. Am I really required to create the guserPreferences bean? Dont we have an option to use layout and at the same time specify the theme via context param?
Primefaces 6.0
Glassfish 4.1.1
JSF 2.2
Netbeans 8.1
Glassfish 4.1.1
JSF 2.2
Netbeans 8.1
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You can remove guestPreferences bean. Then, please add color that you want to use in the layout/theme;
in web.xml
in template.xhtml
etc.
in web.xml
Code: Select all
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>apollo-SELECTED_COLOR</param-value> //Exp; <param-value>apollo-blue</param-value>
</context-param>
Code: Select all
<h:outputStylesheet name="css/layout-blue.css" library="apollo-layout" />
instead of
<h:outputStylesheet name="css/layout-#{guestPreferences.theme}.css" library="apollo-layout" />
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Thanks for the update!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests