Help: cannot set a different theme

UI Components for JSF
Post Reply
rhume
Posts: 21
Joined: 07 Feb 2010, 07:30

08 Feb 2011, 18:13

Hi,

I'm trying to get my app to use a different theme.

I downloaded vader-1.0.0.jar and put it in my WEB-INF/lib folder.

I added the following to my web.xml:

Code: Select all

<context-param>
   <param-name>primefaces.THEME</param-name>  
   <param-value>vader</param-value>  
</context-param>
But when I run the app, the theme does not change.

Is there something else I'm missing?

Rob

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

08 Feb 2011, 18:22

What does h:head render?

rhume
Posts: 21
Joined: 07 Feb 2010, 07:30

08 Feb 2011, 18:28

The <head> tag in the HTML is as follows. Is that what you meant by "h:head"?

Code: Select all

<head><link rel="stylesheet" type="text/css" href="/orcf-webui/primefaces_resource/2.1/skins/sam/skin.css;jsessionid=6193f4ae5068605de58a37406260" />
<link rel="stylesheet" type="text/css" href="/orcf-webui/primefaces_resource/2.1/primefaces/menu/menu.css;jsessionid=6193f4ae5068605de58a37406260" />
<script type="text/javascript" src="/orcf-webui/primefaces_resource/2.1/jquery/jquery.js;jsessionid=6193f4ae5068605de58a37406260"></script>
<script type="text/javascript" src="/orcf-webui/primefaces_resource/2.1/yui/utilities/utilities.js;jsessionid=6193f4ae5068605de58a37406260"></script>
<script type="text/javascript" src="/orcf-webui/primefaces_resource/2.1/yui/container/container-min.js;jsessionid=6193f4ae5068605de58a37406260"></script>
<script type="text/javascript" src="/orcf-webui/primefaces_resource/2.1/primefaces/menu/menu.js;jsessionid=6193f4ae5068605de58a37406260"></script>
<script type="text/javascript" src="/orcf-webui/primefaces_resource/2.1/primefaces/core/core.js;jsessionid=6193f4ae5068605de58a37406260"></script>
	<link rel="stylesheet" type="text/css" href="./styles.css" />
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<title>Test App
	</title></head>

rhume
Posts: 21
Joined: 07 Feb 2010, 07:30

08 Feb 2011, 18:50

Thanks for the help. I tried PrimeFaces 2.2 (instead of 2.1) and everything works fine. I'm now seeing the new theme.

Thanks!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests