Sven
Sven

Reputation: 6338

Primefaces Style Doens't work correctly

I started a JSF project and included primefaces. But I have problems with the style. It doesn't look that nice than in the official showcase. But I have no idea why.

That's what I did so far:

  1. I downloaded a style and extracted it into my project.
  2. I added <link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/flick/skin.css" /> to my facelets template
  3. I extended my web.xml with the following:

<context-param>
<param-name>primefaces.skin</param-name>
<param-value>none</param-value>
</context-param>

Unfortunately it loks like that:

alt text

fyi: That's a prime panel and a prime button :-/

can you pls help me :-) cheers


Update:

Whatsoever I change in context-param. it doesn't work!

Do you need more information to help me solve that problem?

Thank you for help..

Upvotes: 0

Views: 4071

Answers (2)

Sven
Sven

Reputation: 6338

I switched from myfaces to mojarra and now it works -.-

Upvotes: 0

Dejell
Dejell

Reputation: 14337

That's becuase you used none skin.

Look in Prime different skins to choose the right skin.

For example, if you would like Eggplant add:

<context-param>
<param-name>primefaces.skin</param-name>
<param-value>Eggplant</param-value>
</context-param>

Upvotes: 1

Related Questions