Alternate Color in Top Bar

Locked
fabiomarigo
Posts: 4
Joined: 20 Apr 2015, 15:57

22 Apr 2015, 21:14

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.

cagatay.civici
Prime
Posts: 18098
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Apr 2015, 21:36

Not sure what you mean.

fabiomarigo
Posts: 4
Joined: 20 Apr 2015, 15:57

22 Apr 2015, 21:44

By changing the colors, does not work from the top menu.

cagatay.civici
Prime
Posts: 18098
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Apr 2015, 22:53

Do you try from live showcase? The war and maven project has the working sample, layout files has dummy links.

kukeltje
Expert Member
Posts: 9377
Joined: 17 Jun 2010, 13:34
Location: Netherlands

23 Apr 2015, 14:08

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:

Code: Select all

       <h:outputStylesheet name="css/spark-layout.css" library="spark-layout" />
while the template.xhtml in the WEB-INF folder in the spark-1.1.war contains

Code: Select all

        <h:outputStylesheet name="css/spark-layout#{themeView.color}.css" library="spark-layout" />
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)
Ronald van Kuijk
______________________________
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules
Beginners: https://jsf.zeef.com/bauke.scholtz

kukeltje
Expert Member
Posts: 9377
Joined: 17 Jun 2010, 13:34
Location: Netherlands

23 Apr 2015, 14:10

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!
Ronald van Kuijk
______________________________
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules
Beginners: https://jsf.zeef.com/bauke.scholtz

fabiomarigo
Posts: 4
Joined: 20 Apr 2015, 15:57

23 Apr 2015, 16:14

Thank you, worked with the suggested changes.

cagatay.civici
Prime
Posts: 18098
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Apr 2015, 11:56

Please also see color alternatives section in documentation;

http://www.primefaces.org/spark/documentation.xhtml

kukeltje
Expert Member
Posts: 9377
Joined: 17 Jun 2010, 13:34
Location: Netherlands

01 May 2015, 01:56

I read the documentation. But what is missing there is thst the topbar.xhtml has a fixed reference to the green part!!!
Ronald van Kuijk
______________________________
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules
Beginners: https://jsf.zeef.com/bauke.scholtz

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest