问题描述
在JSF应用程序中,我们使用richfaces(Final.3.3.3).在pom.xml中,对jsf-api-2.0.2
,jsf-impl-2.0.2
和jsf-facelets-1.1.15.jar
具有依赖性,而在faces-config.xml中,对<view-handler>
的配置如下:
In JSF application we are using richfaces (Final.3.3.3). In pom.xml there is dependency on jsf-api-2.0.2
, jsf-impl-2.0.2
and jsf-facelets-1.1.15.jar
, and in faces-config.xml there is <view-handler>
configured like this:
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>
我知道在JSF2中您不需要jsf-facelets.您也不需要在faces-config.xml中配置<view-handler>
.因此,我从faces-config.xml中删除了facelets jar和<view-handler>
行.但是当我这样做的时候,丰富的面孔是行不通的.例如. rich:toolBarGroup
未显示.
I know that in JSF2 you don't need jsf-facelets. You also don't need to configure <view-handler>
in faces-config.xml. So I removed facelets jar and <view-handler>
line from faces-config.xml. But when I did it, richfaces didn't work. E.g. rich:toolBarGroup
is not shown.
存在来自a4j javascript文件的javascript错误"document.body为null".
There is javascript error "document.body is null" that comes from a4j javascript file.
richfaces是否需要jsf-facelets
中的此特定ViewHandler
?
Does richfaces need this specific ViewHandler
from jsf-facelets
?
推荐答案
Richfaces 3.3.3不完全支持JSF2的所有功能,根据这.您仍然需要facelets.具体来说,该页面的限制列表中引用了以下内容:
Richfaces 3.3.3 does not fully support all the features of JSF2 according to This. You still need facelets. Specifically, the following is quoted from the limitations list on that page:
Facelets 1.1.15仍应使用,因为Tag Handlers类对RichFaces有依赖性.
Facelets 1.1.15 should still be used because of dependencies in RichFaces from the Tag Handlers classes.
这篇关于如果没有旧的ViewHandler,Richfaces无法正常工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!