Page 1 of 1

Using apollo layout pages

Posted: 17 Nov 2016, 07:08
by sideger
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?

Re: Using apollo layout pages

Posted: 18 Nov 2016, 06:47
by sideger
even the template.xhtml from the layout zip refers to guest preference. I cannot make this work out of the box

Re: Using apollo layout pages

Posted: 18 Nov 2016, 14:46
by mert.sincan
You can remove guestPreferences bean. Then, please add color that you want to use in the layout/theme;
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>
in template.xhtml

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" />
etc.

Re: Using apollo layout pages

Posted: 25 Nov 2016, 03:45
by sideger
Well, I was hoping we could do away with manually specifying the the layout name since its already in context param. But no problem and thanks for the response!

Re: Using apollo layout pages

Posted: 25 Nov 2016, 08:38
by mert.sincan
Thanks for the update!