0

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..

Sven
  • 6,288
  • 24
  • 74
  • 116

2 Answers2

1

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>
Dejell
  • 13,947
  • 40
  • 146
  • 229
0

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

Sven
  • 6,288
  • 24
  • 74
  • 116
  • 2
    Why does it solve your concrete problem? You gave up and used a different framework rather than fixing the problem and continuing with this great idea. – Dejell Mar 24 '13 at 07:15
  • I haven't touched JSF and Java for about over a year now. All I remember is that both libraries implement the same framework standards. http://stackoverflow.com/questions/4530746/mojarra-or-myfaces-jsf2-0-starter – Sven Mar 26 '13 at 11:14