Primefaces样式无法正常工作 [英] Primefaces Style Doens't work correctly

查看:75
本文介绍了Primefaces样式无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始了一个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:

  1. 我下载了一种样式并将其提取到我的项目中.
  2. 我在我的facelets模板中添加了<link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/flick/skin.css" />
  3. 我使用以下内容扩展了我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆