Primefaces样式无法正常工作 [英] Primefaces Style Doens't work correctly
问题描述
我开始了一个JSF项目,并包含了一些主要的方面.但是我的风格有问题.看起来没有官方展示柜那么好.但是我不知道为什么.
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:
- 我下载了一种样式并将其提取到我的项目中.
- 我在我的facelets模板中添加了
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/flick/skin.css" />
- 我使用以下内容扩展了我的web.xml:
<context-param>
<param-name>primefaces.skin</param-name>
<param-value>none</param-value>
</context-param>
<context-param>
<param-name>primefaces.skin</param-name>
<param-value>none</param-value>
</context-param>
不幸的是,它看起来像这样:
Unfortunately it loks like that:
fyi:这是一个主面板和一个主按钮:-/
fyi: That's a prime panel and a prime button :-/
您能帮我一下吗:-) 欢呼
can you pls help me :-) cheers
更新:
我在上下文参数中所做的任何更改.它不起作用!
Whatsoever I change in context-param. it doesn't work!
您需要更多信息来帮助我解决该问题吗?
Do you need more information to help me solve that problem?
感谢您的帮助.
推荐答案
我从myfaces切换到mojarra,现在可以使用-.-
I switched from myfaces to mojarra and now it works -.-
这篇关于Primefaces样式无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!