Hi,
When making the change of colors by ThemeView, not this setting the pages "content". "topbar.xhtml and layoutmenu.xhtml are only with the green theme.
Alternate Color in Top Bar
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Not sure what you mean.
-
- Posts: 4
- Joined: 20 Apr 2015, 15:57
By changing the colors, does not work from the top menu.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Do you try from live showcase? The war and maven project has the working sample, layout files has dummy links.
Happend to me to, took me loooooooong (3 hours) to find out. The template.xhtml in the WEB-INF folder in spark-1.1-layout.zip contains this:
while the template.xhtml in the WEB-INF folder in the spark-1.1.war contains
using the latter it works.
So unfortunately it is not just 'include' the theme and unzip the layout in the root of your webapp. (can the layout not be made into a web-fragement and included in the theme for the combine theme/layout release)
Code: Select all
<h:outputStylesheet name="css/spark-layout.css" library="spark-layout" />
Code: Select all
<h:outputStylesheet name="css/spark-layout#{themeView.color}.css" library="spark-layout" />
So unfortunately it is not just 'include' the theme and unzip the layout in the root of your webapp. (can the layout not be made into a web-fragement and included in the theme for the combine theme/layout release)
The latter makes it 'dynamic' if you also use the themeView bean in your example. But maybe the former should be **removed** since I got the impression BOTH were loaded. The theme you configure in the web.xml AND the one from the template where the latter overrides the former!
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please also see color alternatives section in documentation;
http://www.primefaces.org/spark/documentation.xhtml
http://www.primefaces.org/spark/documentation.xhtml
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests